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 - 2times) +
If you have written everything as it is here the problem should be solved.
Test your solution here: https://judge.softuni.bg/Contests/Practice/Index/512#8.