jawaban-toki/07. Perulangan Lanjut/Pola2.c

16 lines
206 B
C
Raw Permalink Normal View History

2020-04-10 05:40:45 +00:00
#include <stdio.h>
int main () {
int i,k,l,awal;
scanf("%d",&awal);
for(i=1;i<=awal;i++) {
for(k=i+1;k<=awal;k++) {
printf(" ");
}
for(l=1;l<=i;l++) {
printf("*");
}
printf("\n");
}
}