Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Staircase #38

Open
ndrohith09 opened this issue Oct 19, 2022 · 8 comments
Open

Staircase #38

ndrohith09 opened this issue Oct 19, 2022 · 8 comments
Assignees
Labels
easy question Further information is requested

Comments

@ndrohith09
Copy link
Member

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):

  • int n: an integer

Print

Print a staircase as described above.

Input Format

A single integer, n , denoting the size of the staircase.

Constraints

0 <= n <= 100

Output Format

Print a staircase of size n using # symbols and spaces.

Note: The last line must have 0 spaces in it.

Sample Input

6 

Sample Output

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

Explanation

The staircase is right-aligned, composed of # symbols and spaces, and has a height and width of n-6.

@ndrohith09 ndrohith09 added the question Further information is requested label Oct 19, 2022
@theNamanchauhan
Copy link
Contributor

I want to contribute in it.

@ndrohith09
Copy link
Member Author

I want to contribute in it.

@theNamanchauhan can you specify the language which you want to contribute

@theNamanchauhan
Copy link
Contributor

@ndrohith09 In python

@ndrohith09
Copy link
Member Author

@ndrohith09 In python

done

theNamanchauhan added a commit to theNamanchauhan/hacktoberfest that referenced this issue Oct 19, 2022
@Tr1ck-5t3r
Copy link
Contributor

I would like to solve in java

@aman-chhetri
Copy link
Contributor

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
thekavikumar added a commit that referenced this issue Oct 19, 2022
@mohan-warrior
Copy link
Contributor

I would like to solve this problem in c++

@art-rauniyar
Copy link
Contributor

I would like to solve it in c#.

art-rauniyar added a commit to art-rauniyar/hacktoberfest that referenced this issue Oct 30, 2022
shubhangNarain added a commit to shubhangNarain/hacktoberfest-cognizance-amrita that referenced this issue Oct 31, 2022
ndrohith09 added a commit that referenced this issue Oct 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
easy question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants