You are viewing a single comment's thread. Return to all comments →
C++
void staircase(int n) { string hash = "#"; for (int i = 0; i < n; i++, hash += "#") { for (int j = n-i; j > 1; j--) { cout << " "; } cout << hash << endl; } }
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 →
C++