You are viewing a single comment's thread. Return to all comments →
Why wont this be the correct output??? WHYY?
using namespace std;
// Complete the staircase function below. void staircase(int n) {int i,j,k; for(i=0;ii;j--) { cout<<" "; } for(k=0;k<=i;k++) { cout<<"#"; } cout<> n; cin.ignore(numeric_limits::max(), '\n'); staircase(n); 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 →
Why wont this be the correct output??? WHYY?
include
using namespace std;
// Complete the staircase function below. void staircase(int n) {int i,j,k; for(i=0;ii;j--) { cout<<" "; } for(k=0;k<=i;k++) { cout<<"#"; } cout<> n; cin.ignore(numeric_limits::max(), '\n'); staircase(n); return 0; }