#include <iostream>
using namespace std;
int
main ()
{
int x, a, b, sum, diff, product, divison;
cout << "enter a no.\n";
cin >> a;
cout << "enter another no. \n";
cin >> b;
cout << "enter the operator\n";
cin >> x;
if (x == sum)
{
sum = a + b;
cout << "sum=" << sum << endl;
}
else if (x == diff)
{
diff = a - b;
cout << "diff=" << diff << endl;
}
else if (x == product)
{
product = a * b;
cout << "product=" << product << endl;
}
else if (x == divison)
{
divison = a / b;
cout << "divison=" << divison << endl;
}
return 0;
}
when I ran this program online it gave the accurate result.... but when I tried running this program on my computer I get no output just three entries but no result