Skip to content

Instantly share code, notes, and snippets.

@mikedao
Created January 7, 2016 21:59
Show Gist options
  • Save mikedao/58ecab8971de33f2e973 to your computer and use it in GitHub Desktop.
Save mikedao/58ecab8971de33f2e973 to your computer and use it in GitHub Desktop.

Input Format

You are given an integer N depicting the height of the staircase.

Output Format

Print a staircase of height N that consists of # symbols and spaces as given in Sample Output.

Sample Input

6

Sample Output

     #
    ##
   ###
  ####
 #####
######
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment