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