Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions