/*WAP to Formatting strings with printf( ) */
#include<stdio.h> #include<conio.h> main( ) { char firstname1[ ] = "Sandy" ; char surname1[ ] = "Malya" ; char firstname2[ ] = "AjayKumar" ; char surname2[ ] = "Gurubaxani" ; printf ( "\n%20s%20s", firstname1, surname1 ) ; printf ( "\n%20s%20s", firstname2, surname2 ) ; getch(); }
No comments:
Post a Comment