#include <iostream>
using namespace std;
int main() {
cout<<"enter your arithmetic process"<<endl;
int a,b;
char c;
cin>>a>>c>>b;
if (c=='+'){
cout<<a<<"+"<<b<<"="<<a+b<<endl;
}
if (c=='-'){
cout<<a<<"-"<<b<<"-"<<a+b<<endl;
}
if (c=='x'){
cout<<a<<"x"<<b<<"="<<a*b<<endl;
}
if (c=='/'){
cout<<a<<"/"<<b<<"="<<a%b<<endl;
}
cout<<"enter a number:"<<endl;
float number ;
cin>>number;
if (number==0){
cout<<"there are not a number"<<endl;
}
// Print the multiplication table for the number 2
for (int i = 1; i <=10; i++) {
cout << number << " x " << i << " = " << number * i << "\n";
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: