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