19 lines
282 B
C
19 lines
282 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main() {
|
||
|
int h;
|
||
|
int i;
|
||
|
int j;
|
||
|
int e;
|
||
|
printf("Hauteur ? ");
|
||
|
scanf("%d",&h);
|
||
|
for (i=0;i<=h;i++){
|
||
|
for (j=h-i;j>0;j--){
|
||
|
printf(" ");
|
||
|
} for (e=0;e<(i*2)-1;e++){
|
||
|
printf("*");
|
||
|
} printf("\n");
|
||
|
}
|
||
|
return 0;
|
||
|
}
|