#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;
}
program Expon
Real(8) :: s = 1, f = 1, eps
Integer :: i = 1
Read *, eps
do while(abs(1 / f) > eps)
f = f * i
s = s + 1 / f
i = i + 1
enddo
Print *, 'e = ', s
end Program Expon