#include <iostream>
using namespace std;
float x,y,z,P;
int main(){
cin>>x>>y>>z;
if(z<0) P=x>y?x:y;
else P=x<y?x:y;
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
float x,y,z,P;
int main(){
cin>>x>>y>>z;
if(z<0) P=x>y?x:y;
else P=x<y?x:y;
return 0;
}