Create Pola2.c

master
MD15 2020-04-10 12:40:45 +07:00 committed by GitHub
parent 0872850a29
commit 4b24928304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#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");
}
}