C04-小码情报员
2025-06-27 12:04:35
发布于:江苏
17阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
//单分支
if (){
}
if (){
}
//双分支
if (){
} else {
}
//多分支
if (){
} else if (){
} else if (){
} else if(){
}
...
else{
}
return 0;
}
作业提示
如果重量为:10
cout << 10*1.68
如果重量为:28
cout << 20*1.68 + (28-20)*1.98;
这里空空如也
有帮助,赞一个