#K86732. Candle Arrangement
Candle Arrangement
Candle Arrangement
You are given an integer representing the anniversary year. Your task is to print a pyramid of candles using the '#' character, where the number of rows in the pyramid is equal to the given year. Each row i (0-indexed) contains exactly \(2i+1\) '#' characters and is padded with \(year-i-1\) spaces on the left to center the pyramid.
If the input year is non-positive, print None
.
Examples:
Input: 3 Output: # ### #####</p>Input: 5 Output: #
####### #########
Input: 0 Output: None
inputFormat
The input consists of a single integer year provided via standard input.
outputFormat
If year > 0, output the candle arrangement pyramid (each row printed on a new line) to standard output. Otherwise, print None
(without quotes).
3
#
</p>