You are viewing a single comment's thread. Return to all comments →
I did it similar
void staircase(int n) { // Complete this function int k = n; while (k > 0){ for (int i = 0; i < k - 1; i++) printf(" "); for (int j = k - 1; j < n; j++) printf("#"); printf("\n"); k--; } }
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 →
I did it similar