#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; }
觉得有用的话采纳一下哈
你哪里不太明白呢