#include <stdio.h>
int main() {
    int n, i, j, spaces;
    printf("Enter a positive odd integer (n) for the number of rows: ");
    scanf("%d, &n");
    if (n > 0 && n % 2 != 0) {
        for (i = 0; i < n; i++) {
            for spaces = 0; spaces < i; spaces++) {
                printf(" ");
            }
            int stars = 2 * (n - i) -1;
            for (j = 0; j <stars; j++) {
                printf("*");
            }
            printf("\n");
        }
    } else {
        printf("Invalid Input (Please enter a postive odd number).\n");
    }
    return 0;
}