Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Ensure the source code file named Multiply.cpp is open in the code editor. make a counter-controlledwhileloop that uses the loop control variable to take on
- Ensure the source code file namedMultiply.cppis open in the code editor.
- make a counter-controlledwhileloop that uses the loop control variable to take on the values 0 through 10. Remember to initialize the loop control variable before the program enters the loop.
- In the body of the loop, multiply the value of the loop control variable by 2 and by 10. Remember to change the value of the loop control variable in the body of the loop.
- Execute the program by clicking theRunbutton. Record the output of this program.
Expected Output
Number: 0Multiplied by 2: 0Multiplied by 10: 0Number: 1Multiplied by 2: 2Multiplied by 10: 10Number: 2Multiplied by 2: 4Multiplied by 10: 20Number: 3Multiplied by 2: 6Multiplied by 10: 30Number: 4Multiplied by 2: 8Multiplied by 10: 40Number: 5Multiplied by 2: 10Multiplied by 10: 50Number: 6Multiplied by 2: 12Multiplied by 10: 60Number: 7Multiplied by 2: 14Multiplied by 10: 70Number: 8Multiplied by 2: 16Multiplied by 10: 80Number: 9Multiplied by 2: 18Multiplied by 10: 90Number: 10Multiplied by 2: 20Multiplied by 10: 100
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started