Program Menampilkan Segitiga Siku-Siku Rata Kiri - Perulangan Do while / Looping C/C++
#include <stdio.h>
main (void)
{
int n, k, i;
printf ("Program membuat segitiga siku-siku rata kiri\n");
printf ("Masukan kolom bintang = ");
scanf ("%d",&n);
i = 1;
do
{
k = 1;
do
{
printf ("* ");
k++;
}
while (k <= i);
printf ("\n");
i++;
}
while (i <= n);
}
Hasil running
0 Response to "Program Menampilkan Segitiga Siku-Siku Rata Kiri - Perulangan Do while / Looping C/C++"
Post a Comment