#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;
}
uses crt;
var a:array[1..1000] of integer;
i,max,n:integer;
begin
clrscr;
write('n<1000, n=');
read(n);
writeln('a[i]<30000, a[i]:');
for i:=1 to n do
begin
readln(a[i]);
if (a[i] mod 10=3) and (a[i]>max) then max:=a[i];
end;
write('max=',max);
end.