Question: C++ 2) Write a program using a single for loop and have a person walk down the stairs. No if statements needed. You only need
C++
2) Write a program using a single for loop and have a person walk down the stairs. No if statements needed. You only need to make the man go down 6 stairs. It should look like this: * // This block should be looped 6 times And repositioned over 6 more spaces to the left each loop * /|\ * / \ ****** * * /|\ * / \ ****** * * /|\ * / \ ****** * * /|\ * / \ ****** * * /|\ * / \ ****** * * /|\ * / \ ****** Hint: Code the person block first. Next, use a variable from the for loop, to determines the number spaces, 6 more each time, to reprint the person at each step Hint: look up the setw(variable) function online. setw() makes this code easy.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
