1234

Solution-16

void main()
{
char s[100]="school";
int d,i;
for(i=0;i<6;i++)
{
d=i+1;
printf("%-10.*s",d,s);
        printf("\n");
}
getch();
}

2 comments:

  1. Explain thye details of the syntax of printf("%-10.*s",d,s); that how it works

    ReplyDelete