Try to figure out from the examples what you need to do in this
exercise. Make up a solution with a RECURSIVE
function that prints on the output on the go. It is allowed for the
recursive function to have loops inside it, but the solution to the
general problem must be RECURSIVE.
The input of this exercise has several cases. Each and every one of them consists of just a positive natural in one line.
For each case, a sequence of rombes is drawn on the output, followed by a blank line. Take a look at the examples in order to see what the output needs to be according to the input.
Input
1 2 3 4 5
Output
*
*
***
*
*
***
*
***
*****
***
*
***
*
*
***
*
***
*****
***
*
***
*
***
*****
*******
*****
***
*
***
*
***
*****
***
*
***
*
*
***
*
***
*****
***
*
***
*
***
*****
*******
*****
***
*
***
*
***
*****
***
*
***
*
***
*****
*******
*********
*******
*****
***
*
***
*
***
*****
***
*
***
*
***
*****
*******
*****
***
*
***
*
***
*****
***
*
***
*