Write a program that, given three natural numbers , and , prints all the possible rays with beginning at the column in a box . A ray is a vertical sequence of diagonals to the left or to the right.
Input consists of three natural numbers , and , with , , and .
Your program must print all the possible rays with beginning at the column in a box of asterisks. It must print a line in white after each solution.
You can print the solutions to this exercise in any order.
Input
3 5 3
Output
******* * / * * / * */ * ******* ******* * / * * / * * \ * ******* ******* * / * * \ * * / * ******* ******* * / * * \ * * \ * ******* ******* * \ * * / * * / * ******* ******* * \ * * / * * \ * ******* ******* * \ * * \* * /* *******
Input
2 5 3
Output
******* * / * * / * ******* ******* * / * * \ * ******* ******* * \ * * / * ******* ******* * \ * * \* *******
Input
4 1 0
Output
*** *\* */* *\* */* ***