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