#include <stdio.h> int main() { int x; while (scanf("%d", &x) != EOF) { int i, j; for(i=0;i<x;i++){ for(j=0;j<=i;j++){ if(i==0||j==0||i==x-1||j==i) printf("* "); else printf(" "); } printf("\n"); } } return 0; }