We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Warmup
- Staircase
- Discussions
Staircase
Staircase
Sort by
recency
|
5090 Discussions
|
Please Login in order to post a comment
public static void staircase(int n) {
}
Here is my c++ implementation, you can watch the video here : https://youtu.be/4yntFcMY30U
def staircase(n): for i in range(1,n+1): print(' ' * (n - i) + '#' * i) if name == 'main': n = int(input().strip())
In pyhton