include
using namespace std;
int main()
{
for(int i=1;i<100;i++)
{
int32_t a,b,x=0;
string wybor;
cin>>wybor;
cin>>a>>b;
if (wybor=="+")
{
x=a+b;
}
if (wybor=="-")
{
x=a-b;
}
if (wybor=="*")
{
x=a*b;
}
if (wybor=="/")
{
x=a/b;
}
if (wybor=="%")
{
x=a%b;
}
cout<<x<<endl;
}
return 0;
}
Co jest nie tak w tym kodzie?
created
last reply
- 49
replies
- 4.3k
views
- 22
users
- 3
likes
- 12
links
There are 49 replies with an estimated read time of 4 minutes.