2条回答 默认 最新
- -Undefined_ 2021-11-03 21:46关注
#include<iostream> using namespace std; int main(){ double x,y; cin>>x; if(x<-1){ y=x+2; }else if(x>=-1&&x<5){ y=3*x+4; }else if(x>=5){ y=6+7*x; } cout<<y; return 0; }
觉得有用的话采纳一下哈本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 R语言绘制生存曲线时出现警告:All aesthetics have length 1, but the data has 2 rows.
- ¥15 pyqt怎么把滑块和输入框相互绑定,求解决!
- ¥20 wpf datagrid单元闪烁效果失灵
- ¥15 券商软件上市公司信息获取问题
- ¥100 ensp启动设备蓝屏,代码clock_watchdog_timeout
- ¥15 Android studio AVD启动不了
- ¥15 陆空双模式无人机怎么做
- ¥15 想咨询点问题,与算法转换,负荷预测,数字孪生有关
- ¥15 C#中的编译平台的区别影响
- ¥15 软件供应链安全是跟可靠性有关还是跟安全性有关?