Printing the Base

After we have finished with the roof, it is time for the base. It is easier to print:

  • We start with a loop from 0 to n (not inclusive).
  • We print in the console: | + * (n - 2 times) + |.

If you have written everything as it is here the problem should be solved.

Testing in the Judge System

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

results matching ""

    No results matching ""