Feed Headline Animator

String type variables name &city and print their contents on the screen in left –justified and in right –justified format with field width 30

main( )
{
char name[25]=”wasim javed”;
char city[25]=”D-I-khan”;
clrscr();
printf(“Left – justified /n”);
printf(“%-30s/n”,name);
printf(“%-30s/n”,city);
printf(“Right –justified /n”);
printf(“%-30s/n”,name);
printf(“%-30s/n”,city);
getch();
}

Posted by: Wasim Javed

No comments:

Post a Comment