Question: 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


MindTap - Cengage Learning - Google Chrome X ng.cengage.com/staticb/ui/evo/index.html?deploymentld=5745321843541161894515201838&eISBN=9781337274609&id=922179167&snapshotld=1960948& Teon v _ Terminal Catalog and Study Tools Controlled while 1 / / Multiply . cpp - This program prints the numbers 0 through 10 along Partner Offers Loop 2 / / with these values multiplied by 2 and by A-Z Rental Options Summary 10 . 3 / / Input: None 4 / / Output: Prints the numbers 0 through 10 College Success Tips In this lab, you use a along with their values multiplied by 2 and counter-controlled while by 10. Career Success Tips loop in a C++ program 5 6 ? Help provided for you. When completed, the program 7 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
