Write a subroutine
draw_figure(symbol, side) that draws a figure consisting of two isosceles right triangles (see examples).
Where
symbol - placeholder symbol that draws the shape;
side - the size of the legs of a right triangle.
Input strong>
The first line contains a placeholder character (
symbol), in the second line - the size of the legs (
side) .
Imprint
Display the response shape.
Examples
| # |
Input |
Output |
| 1 |
*
5
|
*****
****
***
**
*
*
**
***
****
*****
|
| 2 |
x
3
|
xxx
xx
x
x
xx
xxx
|