Programming Practice

Write a C program to read an integer between 2 and 30 (including) and then print a "square" of side n using character 'X' as a point of the four sides.

Enter an integer between 2 and 30: 6

@

    XXXXXX

    X    X

    X    X

    X    X

    X    X

    XXXXXX

@