#include <stdio.h>
int main(void)
{
int i,j,num;
printf("Lines you want: \n");
scanf("%d",&num);
for (i = 1; i <num; i++) {
for (j = 0;j < i; j++) {
if (j>0 && j < i - 1) {
printf(" ");
} else {
printf("*");
}
}
printf("\n");
}
for (j = 0; j < i; j++)
printf("*");
printf("\n");
}