Create Pola3.c

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

View File

@ -0,0 +1,17 @@
#include <stdio.h>
int main () {
int i,k,awal,x=0;
scanf("%d",&awal);
for(i=1;i<=awal;i++) {
for(k=0;k<i;k++) {
printf("%d",x);
x=x+1;
if(x==10) {
x=0;
}
}
printf("\n");
}
return 0;
}