ZincPony
- 21
- 0
Problem Solved thank you
Last edited:
The discussion revolves around solving a C++ programming problem related to using for loops to print a specific pattern. The scope includes technical explanations and peer support for a beginner in C++.
The discussion includes varying perspectives on the correct implementation of the code, with some participants providing suggestions while others express different experiences. The original poster's final resolution indicates a shift in understanding, but no consensus on the initial approach is reached.
Participants reference specific coding practices and logic without fully resolving the underlying issues related to loop conditions and output formatting.
Individuals learning C++ programming, particularly those struggling with loops and pattern printing in an accelerated course setting.
This will just print 4 blanks every line. That is you need to change the test condition and associate it with lineCtrl variable.for (int spaceCtrl = 4; spaceCtrl >=1 ; spaceCtrl--)
Remember you need 2*lineCtrl-1 X's in each line.for (int xCtrl = 1; xCtrl <= lineCtrl; ++xCtrl)