Welcome to the World of Online Learning:
Hello Friends “This blog helps you to learn C++ programming concepts. You can learn C++ language at your own speed and time. One can learn concepts of C++ language by practicing various programs given on various pages of this blog. Enjoy the power of Self-learning using the Internet.”

Write a C++ Program to Generate Multiplication Table
PROGRAM:C++ Program to Generate Multiplication Table
/* C++ Program to Generate Multiplication Table*/
#include <iostream>
using namespace std;
int main() {
int n;
cout << “Enter a positive integer: “;
cin >> n;
// run a loop from 1 to 10
// print the multiplication table
for (int i = 1; i <= 10; ++i) {
cout << n << ” * ” << i << ” = ” << n * i << endl;
}
return 0;
}