Comments on Stairs? Stairs! Stairs. [released]
Post
Stairs? Stairs! Stairs. [released]
+2
−0
Challenge
- Make a program that takes input of an integer that's $n > 1$ and print out a staircase using a specific character for stair basing (hashes (
#
) for demonstration; you can use spaces, but not tabs or other whitespace characters), slashes (/
), and underscores (_
). - The basis of the staircase is having the hashes as to act like the stair supporters, in other words, bricks. The bottom stair starts with a slash then as we go higher, an underscore at the spot right next and above the
- Shortest program in each language wins!
Test Cases
n = 2
_/
/##
n = 3
_/
_/##
/####
n = 6
_/
_/##
_/####
_/######
_/########
/##########
2 comment threads