#include <stdio.h>
#include <conio.h>
int main ()
{
int i,j;
printf ("Masukkan jumlah : ");
scanf ("%d", &i);
for (int c = i; c <= 10; c++ )
{
for (int j = i; j < c; j++ )
{
printf ("%d ", j);
}
printf ("\n");
}
getch ();
return 0;
}
Tidak ada komentar:
Posting Komentar