kmitl-profund-exercise/triangle-filler/main.cpp

15 lines
239 B
C++

#include<stdio.h>
int main() {
int x,i,j;
printf("Gimme a size : ");
scanf("%d", &x);
for(i=1;i<=x;i++) {
printf("\n");
for(j=1;j<=i;j++) {
printf("*");
}
}
return 0;
}