
#include<conio.h>
#include<stdio.h>
#include<iostream.h>
float Max(float a,float b)
{
if (a > b) then return a
else return b;
}
float Min(float a,float b)
{
if (a < b) then return a
else return b;
}
int main()
{
float x,y,z,p;
clrscr;
cout<<"Введите 3 числа: ";
cin>>x;
cin>>y;
cin>>z;
if (z < 0) p = Max (x, y)
else p =Min (x, y);
cout<<" \nP равно:"<<p<<"\n";
getch();
return 0;
}
, пишите язык программирования, когда задаете вопросы, а то все школы разные изучают
Это на python, могу на с++ переписать
Объяснение:
1)
x=int(input())
y=int(input())
k=y-x
print(k)
2)
h=int(input())
g=int(input())
s=h+g
print(s)