for (i = input - 1; i <= 1; i--) {
for (j = i; j <= 1; j--)
cout << setw(3 * j);
cout << i << endl;
}
This should work, just decrement yourself back through the loop and change the position of your output line.
I find a lot of people's post hint towards the philosphy of, "we've been ok so far, humans always seem to work themselves out of problems, so why should I care, someone else will solve it." This maybe true, but what's wrong with trying to solve the problem before it actually becomes...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.