Question: The C++ program should display the Multiplication Table of a number entered by the user. Fill in the blanks in the incomplete program: #include using
The C++ program should display the Multiplication Table of a number entered by the user.
Fill in the blanks in the incomplete program:
#include
using namespace std;
int main() {
int x, no;
cout << "Enter number:";
cin >> no;
cout << "Multiplication Table of " << no << endl;
x = 1;
while (_________) {
cout << no << " x " << x << " =" << _________ << " ";
_________
}
return 0;
}
The output should be:
Enter number: 2
Multipication Table of 2
2 x 1 = 2
2 x 2 = 4
2 x 3 = 6
2 x 4 = 8
2 x 5 = 10
2 x 6 = 12
2 x 7 = 14
2 x 8 = 16
2 x 9 = 18
2 x 10 = 20
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
