/* Program for - Nested for */
#include <stdio.h>
#include <conio.h>
main()
{
int a,b;
clrscr();
for(a=1;a<=5;a++)
{
printf("\n");
for(b=a; b<=5;b++)
printf(" %d", a);
}
getch();
}
Hasil Running
Nested For
Label:
Materi Borland
0 komentar:
Posting Komentar