You are viewing a single comment's thread. Return to all comments →
Here is my c++ implementation, you can watch the video here : https://youtu.be/4yntFcMY30U
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for(int i = 1; i <= n; i++) { string s(n-i, ' '), e(i, '#'); cout << s + e << endl; } return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
Here is my c++ implementation, you can watch the video here : https://youtu.be/4yntFcMY30U