Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please I need hep, and explain it clearly, thank you. loops_multiply Send only .hpp and .cpp files. Write a C++ program that loops forever using

Please I need hep, and explain it clearly, thank you.

loops_multiply Send only .hpp and .cpp files. Write a C++ program that loops forever using while (true). Declare inside the loop 3 numbers: int num = 0, n1 = 0, n2 = 0; Ask the user to enter values 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 typing Y or N. Convert the answer to uppercase If answer != 'Y' break. For example : Welcome to the table program! Enter num, start, and 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 continue? (y or n)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions