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

16 lines
239 B
C++
Raw Normal View History

2023-04-02 17:56:49 +00:00
#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;
}