Răspuns:
#include <iostream>
using namespace std;
double a, b;
int main()
{ cin>>a>>b;
if(a>b) cout<<a<<endl;
else cout<<b<<endl;
if(b+a>a+b) cout<<b<<endl;
else cout<<a-b<<endl;
if(a==b) cout<<a+b<<endl;
else cout<<b-a<<endl;
if(a!=b) cout<<a<<" "<<b;
else cout<<a;
return 0;
}
Sper ca te-am ajutat!