void Print() { int i, j; for(i = 0; i<6; i++) { for(j = 0; j<= i; j++) { printf("%c",j+'A'); } printf("\n"); }}int main() { Print(); return 0;}
program in c++ to print output in pyramid * * * * * * * * * * * * * * *
what will be a prog. to construct * *** ***** *** *
thanks for help with this program but please explain ->printf("%c",j+'A');
This comment has been removed by the author.
program in c++ to print output in pyramid
ReplyDelete*
* *
* * *
* * * *
* * * * *
what will be a prog. to construct *
ReplyDelete***
*****
***
*
thanks for help with this program but please explain ->printf("%c",j+'A');
ReplyDeleteThis comment has been removed by the author.
ReplyDelete