Написать программу нахождения наиболее наибольшего из трех чисел
PASCAL
Ответ
3
program chik;
var a,b,c,min:real;
begin
read(a,b,c);
min:=a;
if(b>min)then min:=b;
if(c>min)then min:=c;
writeln(min);
end.
var a,b,c,min:real;
begin
read(a,b,c);
min:=a;
if(b>min)then min:=b;
if(c>min)then min:=c;
writeln(min);
end.
Ответ
3
program chisla;
var a,b,c,max:real;
begin
readln(a,b,c);
if (a>b) and (a>c) then max:=a;
if (a<b) and (b>c) then max:=b
if (a<c) and (b<c) then max:=c;
writeln(max);
end.
var a,b,c,max:real;
begin
readln(a,b,c);
if (a>b) and (a>c) then max:=a;
if (a<b) and (b>c) then max:=b
if (a<c) and (b<c) then max:=c;
writeln(max);
end.
marsmag:
у меня нахождения максимума а у пользователя kage1998 минимума
marsmag:
да
marsmag:
у нас программирование в курсе нет, но я сдаю ЕГЭ учусь до строк дошел
marsmag:
оно же проходиться с 8 по 9 класс