#include<stdio.h> #include<conio.h> void main() { int i,j; clrscr(); for(i=1;i<=5;i++) { for(j=5;j>=i;j--) printf("%3d",j); printf("\n"); } getch(); } |
___________________________________________________________________________
Posted by computersadda on 00:11: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=1;i<=5;i++) { for(j=5;j>=i;j--) printf("%3d",j); printf("\n"); } getch(); } |
Post a Comment