#C575. Draw X Pattern

    ID: 49433 Type: Default 1000ms 256MiB

Draw X Pattern

Draw X Pattern

Given an integer n, your task is to print an X pattern of size n x n using the characters * and .. The pattern is defined such that the two diagonals of the square are filled with *, and the rest of the positions are filled with .. For the i-th row (0-indexed), the positions i and n-i-1 must contain *.

For example, when n = 3, the output should be:

*.*
.*.
*.*

Ensure that your program reads the input from standard input (stdin) and writes the output to standard output (stdout).

inputFormat

The input consists of a single integer n from standard input, which specifies the size of the pattern.

Constraints: 1 ≤ n ≤ 100 (assumed for practical purposes).

outputFormat

Output the X pattern of size n x n with each row printed on a new line. Make sure that the only characters in the output are * and ..

## sample
1
*

</p>