Skip to content

Staircase #4

@acha-bill

Description

@acha-bill

Consider a staircase of size 4

   #
  ##
 ###
####

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

Write a function that given N, prints the staircase of size N.
e.g

If N = 6

The output is

     #
    ##
   ###
  ####
 #####
######

Metadata

Metadata

Assignees

No one assigned

    Labels

    L2Level 2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions