Question: Write a C++ prgram that loops forever using while (true). Declare inside the loop 3 numbers: int num = 0, n1 = 0, n2 =
Write a C++ prgram that loops forever using while (true). Declare inside the loop 3 numbers: int num = 0, n1 = 0, n2 = 0; Ask the user to enter vaslues for: num, n1, n2. Read the numbers using cin >> num >> n1 >> n2 Make a for loop from n1 to n2 inclusive Print the multiplication table for num from n1 to n2. Ask the user if they want to continue type Y or N. Convert the answer to uppercase If answer != 'Y' break. Example Welcome to the mtable program! Enter num, start, stop integers: 7 1 12 7 * 1 = 7 7 * 2 = 14 7 * 3 = 21 7 * 4 = 28 7 * 5 = 35 7 * 6 = 42 7 * 7 = 49 7 * 8 = 56 7 * 9 = 63 7 * 10 = 70 7 * 11 = 77 7 * 12 = 84 Do you want to coninue? (y or n)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
