#include<stdio.h> #include<conio.h> void main() { int i,j; clrscr(); for(i=5;i>=1;i--) { for(j=1;j<=i;j++) printf(" %d ",i); printf("\n"); } getch(); } |
___________________________________________________________________________
Posted by computersadda on 18:03:00 in Nested for Loop C-Programs (28 formats) | Comments : 0
#include<stdio.h> #include<conio.h> void main() { int i,j; clrscr(); for(i=5;i>=1;i--) { for(j=1;j<=i;j++) printf(" %d ",i); printf("\n"); } getch(); } |
Post a Comment