Another Beginner problem...
Hi all again, I searched but did not find a thread that helped.
Why o why is my pattern going vertically, I need it to go horizontal. I'm assuming I need a const for width but that's as far as I can get.
Please excuse the questions that will be undoubtedly coming from me in the future as well. I'm working 6 days a week and my brain is fried by the time I get to coding.
Thanks as always!!
edit: cin @ bottom is to see prog run.
using namespace std;
int col, row, num2;
for (row = 1; row <= 10; row++)
for (col = 1; col <= row; col++)
cout << "*" << '\n';
cout << '\n';
cin >> num2;
Last edited on
|Why o why is my pattern going vertically|
Because of the
on line 16. Remove it and it will go horizontally
Topic archived. No new replies allowed.