Geometric shapes · 11 / 13 Exercise Medium

Triangle Rectangle Mirror

Objective

Write a Python program similar to the triangle rectangle exercise. In this exercise, ask the user for two integers, the first is an integer x that is used to draw the area of ​​the right triangle on the screen.

The second integer will be the width of the triangle. The height of the triangle will always be the same as the width.

The difference is in the orientation of the right triangle.

Input
0
5
Output
00000
 0000
  000
   00
    0

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise