Draw a tiled cube of any size, in ASCII art.
You will be given three numbers a
, b
and c
, and the program should output an a*b*c sized cube.
Examples
3 3 3
->
____ ____ ____
/____/____/____/|
/____/____/____/||
/____/____/____/|||
|____|____|____|||/
|____|____|____||/
|____|____|____|/
5 2 3
->
____ ____ ____ ____ ____
/____/____/____/____/____/|
/____/____/____/____/____/||
/____/____/____/____/____/||/
|____|____|____|____|____||/
|____|____|____|____|____|/
4 6 5
->
____ ____ ____ ____
/____/____/____/____/|
/____/____/____/____/||
/____/____/____/____/|||
/____/____/____/____/||||
/____/____/____/____/|||||
|____|____|____|____||||||
|____|____|____|____|||||/
|____|____|____|____||||/
|____|____|____|____|||/
|____|____|____|____||/
|____|____|____|____|/
Shortest code wins.
/
instead of|
so it matches the top, and the number of pipes in each vertical line be identical. \$\endgroup\$a
,b
, andc
? For example, are any of the dimensions allowed to be0
? \$\endgroup\$