diff --git a/07. Perulangan Lanjut/Pola2.c b/07. Perulangan Lanjut/Pola2.c new file mode 100644 index 0000000..dd30e45 --- /dev/null +++ b/07. Perulangan Lanjut/Pola2.c @@ -0,0 +1,15 @@ +#include +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"); + } +}