#C3109. Hourglass Pattern
Hourglass Pattern
Hourglass Pattern
Given an odd integer n satisfying \( n > 1 \) and \( n \le 15 \), print an hourglass pattern using the '#' character. The pattern is symmetric: the first half decreases by 2 '#' characters per row until a single '#' is printed, and then the pattern mirrors.
Constraints: \( n \) must be an odd number greater than 1 and less than or equal to 15.
Example:
Input: 3 Output: ### # ###
inputFormat
A single odd integer ( n ) (with ( n > 1 ) and ( n \le 15 )) read from standard input.
outputFormat
An hourglass pattern printed to standard output using the '#' character. Each row of the pattern is printed on a new line.## sample
3###
</p>