• + 0 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; }