#include <iostream>
using namespace std;
int main()
{
double a,b;
char c;
cin>>a;
HI: cin>>c; switch (c)
{
case '+' :
{
cin>>b;
a=a+b;
goto HI;
}
case '-' :
{
cin>>b;
a=a-b;
goto HI;
}
case '*' :
{
cin>>b;
a=a*b;
goto HI;
}
case '/' :
{
cin>>b;
a=a/b;
goto HI;
}
case '=' :
{
cout<<a;
}
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: