Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Staircase

Consider a staircase of size n = 4:

   #
  ##
 ###
####

Observe that its base and height are both equal to , and the image is drawn using # symbols and spaces. The last line is not preceded by any spaces.

Write a program that prints a staircase of size n.

HackerRank

This problem comes from https://www.hackerrank.com/challenges/staircase/problem

Author vatsalchanana