#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cstdlib>
#include<ctime>
#include<math.h>
using namespace std;
int main(){
int a,b,sum;
char c;
cin>>a>>b>>c;
if(c == '+') sum=a+b;
if(c == '-') sum=a-b;
if(c == '/') sum=a/b;
if(c == '*') sum=a*b;
cout<<sum;
return 0;
}
2024 简单计算器
最新推荐文章于 2024-09-07 05:15:02 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)