Nested for loop statement C Programming /*Write a Program to print the below output using nested for loop * ** *** **** ***** */ #include< stdio.h > #include< conio.h > void main() { int r,c; clrscr(); for(r=1;r<=5;r++) { for(c=1;c<=r;c++) { printf("*"); } printf("\n"); } getch(); } Output is as : * ** *** **** ***** Read more » Tweet Share Share Share Share Related Post
ConversionConversion EmoticonEmoticon