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)
Operations
In mathematics and computer science, an operation is an event that is carried out to satisfy a given task. Basic operations of a computer system are input, processing, output, storage, and control.
Basic Operators
An operator is a symbol that indicates an operation to be performed. We are familiar with operators in mathematics; operators used in computer programming are—in many ways—similar to mathematical operators.
Division Operator
We all learnt about division—and the division operator—in school. You probably know of both these symbols as representing division:
Modulus Operator
Modulus can be represented either as (mod or modulo) in computing operation. Modulus comes under arithmetic operations. Any number or variable which produces absolute value is modulus functionality. Magnitude of any function is totally changed by modulo operator as it changes even negative value to positive.
Operators
In the realm of programming, operators refer to the symbols that perform some function. They are tasked with instructing the compiler on the type of action that needs to be performed on the values passed as operands. Operators can be used in mathematical formulas and equations. In programming languages like Python, C, and Java, a variety of operators are defined.
Please I need hep, and explain it clearly, thank you.
loops_multiply
Send only .hpp and .cpp files.
Write a C++
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
Solved in 4 steps with 2 images