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 »
Sandbox

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
         _/
       _/##
     _/####
   _/######
 _/########
/##########
History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

2 comment threads

What is the flavortext a reference to? What are Mark and Cream? (4 comments)
Alternate character? (2 comments)
What is the flavortext a reference to? What are Mark and Cream?
user‭ wrote about 3 years ago

What is the flavortext a reference to? What are Mark and Cream?

General Sebast1an‭ wrote about 3 years ago

user‭ They're the names of my stuffed toys, both are male. I don't know what flavortext is supposed to be, but I can tell you that the Mark is my username.

user‭ wrote about 3 years ago

If they're just your stuffed toys and not television characters or something that people would recognize, I don't really see a point to the dialogue at the start. Only you would "get" it, so it doesn't add anything to the challenge.

General Sebast1an‭ wrote about 3 years ago

user‭ The reason it won't appear when posted in main.