C++ program to write multiplication table.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int x;
cout << "For which number you want to write the table ";
cin >> x;
for (int i = 1; i <= 10; i++)
{
cout << x << "*" << i << " = " << (x * i) << endl;
}
return 0;
}
Comments
Post a Comment