Computer Science, asked by rudra938333, 1 month ago

Write a program that lets the user enter a number. Then the program displays the

multiplication table for that number from 1 to 10. E.g., when the user enters 12,

the first line printed is 1 * 12 = 12

2 * 12 = 24

3 * 12 = 36

…………..……..

10 * 12 = 120​

Answers

Answered by kundanpandey3103
0

Answer:

#include <iostream> using namespace std; int main() { int n; cout << "Enter a positive integer: "; cin >> n; for (int i = 1; i <= 10; ++i) { cout << n << " * " << i << " = " << n * i << endl; } return 0; }

Hope it helps u

Similar questions