Problem: Drawing a Fort

Write a program which takes an integer n and draws a fort wide 2 * n columns and tall n rows as in the examples below. The left and right columns inside are wide n / 2.

Input Data

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

Output Data

Print on the console n rows, depicting the fortas in the examples.

Sample Input and Output

Input Output Input Output
3 /^\/^\
|    |
\_/\_/
4 /^^\/^^\
|      |
|      |
\__/\__/
Input Output Input Output
5 /^^\__/^^\
|        |
|        |
|   __   |
\__/  \__/
8 /^^^^\____/^^^^\
|              |
|              |
|              |
|              |
|              |
|     ____     |
\____/    \____/

results matching ""

    No results matching ""