Problem: Arrow

Write a program which takes from the console an integer n and draws a vertical arrow with size as in the examples below.

Input Data

The input is an odd integer n in the interval [3 … 79].

Output Data

Print a vertical arrow on the console, in which "#" (number sign) makes out the outline of the arrow, and "." - the rest.

Sample Input and Output

Input Output Input Output
3 .###.
.#.#.
##.##
.#.#.
..#..
5 ..#####..
..#...#..
..#...#..
..#...#..
###...###
.#.....#.
..#...#..
...#.#...
....#....
Input Output
9 ....#########....
....#.......#....
....#.......#....
....#.......#....
....#.......#....
....#.......#....
....#.......#....
....#.......#....
#####.......#####
.#.............#.
..#...........#..
...#.........#...
....#.......#....
.....#.....#.....
......#...#......
.......#.#.......
........#........

results matching ""

    No results matching ""