#include <iostream>
#include <cmath>
// code to print multiplication table of a number entered by an user.
using namespace std;
int main(){
int num;
cout << "enter a num : ";
cin >> num;
for(int i = 1; i <= 10; i++){
int multiply = num*i;
cout << num << " " << "x " << i << " is " << multiply << endl;
}
return 0;
}
No comments:
Post a Comment