728x90
hackerrank staircase
-
[HackerRank] Staircase c++Coding Test/HackerRank 2022. 7. 16. 22:31
problem This is a staircase of size n =4 : # ## ### #### Its base and height are both equal to n. It 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. sample input 6 sample output # ## ### #### ##### ###### explanation The staircase is right-aligned, composed of # symbols and spaces, and has a height and width of ..