This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Staircase #38
Comments
I want to contribute in it. |
@theNamanchauhan can you specify the language which you want to contribute |
@ndrohith09 In python |
done |
theNamanchauhan
added a commit
to theNamanchauhan/hacktoberfest
that referenced
this issue
Oct 19, 2022
I contributed in cognizance-amrita#38
Merged
I would like to solve in java |
Merged
I would like to solve this problem in C. |
aman-chhetri
added a commit
to aman-chhetri/hacktoberfest
that referenced
this issue
Oct 19, 2022
Merged
I would like to solve this problem in c++ |
This was referenced Oct 19, 2022
Merged
I would like to solve it in c#. |
art-rauniyar
added a commit
to art-rauniyar/hacktoberfest
that referenced
this issue
Oct 30, 2022
Merged
shubhangNarain
added a commit
to shubhangNarain/hacktoberfest-cognizance-amrita
that referenced
this issue
Oct 31, 2022
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Staircase detail
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
.Function Description
Complete the staircase function in the editor below.
staircase has the following parameter(s):
Print
Print a staircase as described above.
Input Format
A single integer,
n
, denoting the size of the staircase.Constraints
Output Format
Print a staircase of size
n
using#
symbols and spaces.Note: The last line must have
0
spaces in it.Sample Input
Sample Output
Explanation
The staircase is right-aligned, composed of
#
symbols and spaces, and has a height and width ofn-6
.The text was updated successfully, but these errors were encountered: