From 4b24928304788467169d7f6e5b837676bce47a04 Mon Sep 17 00:00:00 2001 From: MD15 <36522826+MD15@users.noreply.github.com> Date: Fri, 10 Apr 2020 12:40:45 +0700 Subject: [PATCH] Create Pola2.c --- 07. Perulangan Lanjut/Pola2.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 07. Perulangan Lanjut/Pola2.c 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"); + } +}