#include <stdio.h>
void Triangle(int side);
int main(void)
{
int length = 0;
printf("Enter the triangel's side: ");
scanf("%d", &length);
Triangle(length);
return 0;
}
void Triangle(int side)
{
int i,j;
int space;
for(i = 1; i <= side; i += 2){
for(space = side-i/2; space > 0; space--){
printf(" ");
}
for(j = 1; j <= i; j++){
printf("*");
}
printf("\n");
}
}