Monday 3 August 2020

Printing a right aligned staircase in C++


Problem

To print a right aligned staircase as follows:

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

Input: A integer N denoting number of rows

Code:
Output:




Previous Post
Next Post