Thursday, July 9, 2009

Can any C programmer give me a program on following :?

output should be :





MAHAARANA


MAHA.RANA


MAH......ANA


MA............NA


M.................A








THE OUTPUT SHOULD BE LIKE THIS

Can any C programmer give me a program on following :?
//didn't actually try this but should work


#include %26lt;stdio.h%26gt;


#include %26lt;stdlib.h%26gt;





int main(void)


{ printf("MAHAARANA\n");


printf("MAHA.RANA\n");


printf("MAH......ANA\n");


printf("MA............NA\n");


printf("M.................A\n " ) ;





return(EXIT_SUCCESS);


}
Reply:Sure can do.


No comments:

Post a Comment