Problem 3 - Stairs




Given an integer input N, print a staircase out of height N.
For example, given

the input 5, print out the following staircase:

 

    #

   ##

  ###

 ####

#####

 

Input format - from text file:

The first line contains an integer with the number of test
cases.

The following lines are the heights of the stairs

 

Ex.

2

4

4

 

Output format - console

Print to console space separated stairs

    #

   ##

 

    #

   ##

  ###

 ####

 

    #

   ##

  ###

 ####
Click BUY NOW BUTTON FOR SOLUTIONYOU MAY ALSO LIKE:DIAGONAL SOLN https://sellfy.com/p/v10k/

ANAGRAM https://sellfy.com/p/xxLq
Powered by