1 条题解
-
0I don't now LV 6 @ 2020-02-19 22:20:52
#include <iostream>
using namespace std;
int main () {
string a;
int b,c;
cout << "请输入快递重量(公斤):";
cin >> b;
c = b*5;
cout << "请输入目的地省份:";
cin >> a;
if(a == "江苏"||a == "浙江"||a == "上海"){
c = 0;
cout << "快递费为:" << "0" << "元";
}else{
cout << "快递费为:" <<c << "元";
}return 0;
}
- 1
信息
- ID
- 1031
- 难度
- 3
- 分类
- (无)
- 标签
- (无)
- 递交数
- 49
- 已通过
- 8
- 通过率
- 16%
- 上传者