Printing the Middle Rows

When drawing the middle part we need to check if the row is (n-1) / 2 - 1, because in the examples we can see that in this row we need to print pipes instead of white spaces.

Testing in the Judge System

Test your solution here: https://judge.softuni.bg/Contests/Practice/Index/512#7.

results matching ""

    No results matching ""