Using C++, Using a WHILE LOOP, get integers from the user. Then, using a FOR LOO
ID: 3625770 • Letter: U
Question
Using C++, Using a WHILE LOOP, get integers from the user. Then, using a FOR LOOP, calculate a 'times table' of that number and the numbers between 1 and 17. When the user enters a zero, end the program.I know this is totally wrong below, please help!
#include <iostream>
using namespace std;
int main()
{
cout << "Enter a number between 1 and 17: ";
cin >> num;
do {
cout << "Enter a number between 1 and 17: ";
cin >> num;
} while (num<MULT_MIN || num > MULT_MAX);
while (num <MULT_MIN || num > MULT_MAX)
}
Explanation / Answer
Here is my explanation: C++ Syntax (Toggle Plain Text) { int num = 1; while (num != 0) { cin >> num; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.