#include <iostream>
using namespace std;
int main(){
double x, y;
cin>>x;
if (x>7) y=x-3;
else if (x<-5) y=4*x*x;
else y=5;
cout<<y;
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main(){
double x, y;
cin>>x;
if (x>7) y=x-3;
else if (x<-5) y=4*x*x;
else y=5;
cout<<y;
return 0;
}