PascalABC.Net var x,y,z:integer; m:single; begin Write('Введите x,y,z: '); Read(x,y,z); m:=(max(max(3*x,y*z-x),z+x)+6*z)/(-5*min(x,z)); Writeln(m) end.
Тестовое решение: Введите x,y,z: 3 6 -2 -0.3
Borland Pascal 7.01 uses Crt; function max(m,n:integer):integer; begin if m>n then max:=m else max:=n end; function min(m,n:integer):integer; begin if m<n then min:=m else min:=n end; var x,y,z:integer; m:real; begin ClrScr; Write('Введите x,y,z: '); Read(x,y,z); m:=(max(max(3*x,y*z-x),z+x)+6*z)/(-5*min(x,z)); Writeln(m); ReadKey end.
present simple общие does he go to school every day? does she really like singing? is it cold today? do cats catch mice? has he got a real friend? альтернативные does she go to shool every day or once a month? do cats catch mice or dogs? is the earth round or square? is russia bigger or smaller than other countries? does he like skiing or skating? специальные what does he do at school every day? who likes dancing? when does winter come? where does she live? what does she always wait for? present progressive общие is it raining now? is the sun shining at the moment? is he writing his composition now? are they swimming in the pool at the moment? are you doing your homework? альтернативные are you doing your homework or watching tv now? is it raining or snowing now? are they flying to italy or to canada now? is he reading a book or a web-page? is she clever or not? специальные what is she looking forward for? where are they going to go next summer? when is he leaving for france? whom is she writing an e-mail? what are they doing now?
var
x,y,z:integer;
m:single;
begin
Write('Введите x,y,z: '); Read(x,y,z);
m:=(max(max(3*x,y*z-x),z+x)+6*z)/(-5*min(x,z));
Writeln(m)
end.
Тестовое решение:
Введите x,y,z: 3 6 -2
-0.3
Borland Pascal 7.01
uses Crt;
function max(m,n:integer):integer;
begin if m>n then max:=m else max:=n end;
function min(m,n:integer):integer;
begin if m<n then min:=m else min:=n end;
var
x,y,z:integer;
m:real;
begin
ClrScr;
Write('Введите x,y,z: '); Read(x,y,z);
m:=(max(max(3*x,y*z-x),z+x)+6*z)/(-5*min(x,z));
Writeln(m);
ReadKey
end.
Тестовое решение:
Введите x,y,z: 3 6 -2
-3.0000000000E-01