-
个人简介
#include <bits/stdc++.h>
using namespace std;
int main (){
cout << "--------------------------------------" << endl;
cout << "----------欢迎来到我的计算机----------" << endl;
cout << "1.加法 2.减法 3.乘法 4.除法 5.取余" << endl;
cout << "------请输入你要用的运算符号编号------" << endl;
cout << "--------------------------------------" << endl;
char a,b;
int type;
cin >> type;
cout << "-------请输入两个数(用空格分隔)-------" << endl;
cin >> a >> b;
if(type=='1'){
cout << a+b << endl;}
else if(type=='2'){ cout << a-b << endl; } else if(type=='3'){ cout << a*b << endl;}
else if(type=='4'){
cout << a/b << endl;}
else if(type=='5'){
cout << a%b << endl;}
return 0;
}
-
通过的题目
-
最近活动
-
最近编写的题解
This person is lazy and didn't write any solutions.
题目标签
- 模拟
- 3
- 字符串
- 3
- 计算几何
- 2
- 数学
- 1
- 排序
- 1
- 数组
- 1
- 分支结构
- 1