Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

60%
+1 −0
Challenges Stairs? Stairs! Stairs.

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,...

7 answers  ·  posted 3y ago by General Sebast1an‭  ·  last activity 3y ago by radarek‭

#3: Post edited by user avatar General Sebast1an‭ · 2021-09-08T12:12:18Z (about 3 years ago)
  • > This challenge is currently in the beta release, meaning if given enough positivity, it will remain here as a full challenge. Otherwise if the challenge reaches negative aspects, it will be deleted and reused on the sandbox. If there are anything unclear yet, please head over to [the sandboxed post](https://codegolf.codidact.com/posts/283858/) to fix any issues.
  • # 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
  • ```none
  • n = 2
  • _/
  • /##
  • n = 3
  • _/
  • _/##
  • /####
  • n = 6
  • _/
  • _/##
  • _/####
  • _/######
  • _/########
  • /##########
  • ```
  • # 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
  • ```none
  • n = 2
  • _/
  • /##
  • n = 3
  • _/
  • _/##
  • /####
  • n = 6
  • _/
  • _/##
  • _/####
  • _/######
  • _/########
  • /##########
  • ```
#2: Post edited by user avatar General Sebast1an‭ · 2021-09-07T01:41:08Z (about 3 years ago)
  • > This challenge is currently in the beta release, meaning if given enough positivity, it will remain here as a full challenge. Otherwise if the challenge reaches negative aspects, it will be deleted and reused on the sandbox. If there are anything unclear yet, please head over to [the sandboxed post](https://codegolf.codidact.com/posts/283858/) to fix any issues.
  • # 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), 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
  • ```none
  • n = 2
  • _/
  • /##
  • n = 3
  • _/
  • _/##
  • /####
  • n = 6
  • _/
  • _/##
  • _/####
  • _/######
  • _/########
  • /##########
  • ```
  • > This challenge is currently in the beta release, meaning if given enough positivity, it will remain here as a full challenge. Otherwise if the challenge reaches negative aspects, it will be deleted and reused on the sandbox. If there are anything unclear yet, please head over to [the sandboxed post](https://codegolf.codidact.com/posts/283858/) to fix any issues.
  • # 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
  • ```none
  • n = 2
  • _/
  • /##
  • n = 3
  • _/
  • _/##
  • /####
  • n = 6
  • _/
  • _/##
  • _/####
  • _/######
  • _/########
  • /##########
  • ```
#1: Initial revision by user avatar General Sebast1an‭ · 2021-09-07T01:39:49Z (about 3 years ago)
Stairs? Stairs! Stairs.
> This challenge is currently in the beta release, meaning if given enough positivity, it will remain here as a full challenge. Otherwise if the challenge reaches negative aspects, it will be deleted and reused on the sandbox. If there are anything unclear yet, please head over to [the sandboxed post](https://codegolf.codidact.com/posts/283858/) to fix any issues.

# 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), 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

```none
n = 2
 _/
/##

n = 3
   _/
 _/##
/####

n = 6
         _/
       _/##
     _/####
   _/######
 _/########
/##########
```