1)
#include <iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a==b)
a=0;
b=0;
}
else
if(a>b)
b=a;
a=b;
cout<<a<<" "<<b;
return 0;
2)
a)
float x,y;
cin>>x;
if(x<=-3)
y=x*x+5;
y=1/(x*x+5);
cout<<y;
б)
if(x<=-1)
y=0;
else if(x>-1 && x<=1)
y=x*x;
y=x*x-x;
3)
float a,y;
cin>>a;
if(a>0)
y=(-2)*a;
y=(-1)*a;
1)
#include <iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a==b)
{
a=0;
b=0;
}
else
if(a>b)
b=a;
else
a=b;
cout<<a<<" "<<b;
return 0;
}
2)
a)
#include <iostream>
using namespace std;
int main()
{
float x,y;
cin>>x;
if(x<=-3)
y=x*x+5;
else
y=1/(x*x+5);
cout<<y;
return 0;
}
б)
#include <iostream>
using namespace std;
int main()
{
float x,y;
cin>>x;
if(x<=-1)
y=0;
else if(x>-1 && x<=1)
y=x*x;
else
y=x*x-x;
cout<<y;
return 0;
}
3)
#include <iostream>
using namespace std;
int main()
{
float a,y;
cin>>a;
if(a>0)
y=(-2)*a;
else
y=(-1)*a;
cout<<y;
return 0;
}