num1 = input('enter first num')
num2 = input('enter second num')
num3 = input('enter thread num')
if num1 < num2 and num1 < num3:
print(num1,'this num is smaller than other')
elif num1 < num2 and num1 > num3:
print(num3,'this num is smaller than other's')
elif num1 > num2 and num1 < num3:
print(num2,'this num is smaller than other's')
Объяснение:
Sry, I don't know Pascal, I know Python...
var x,y,z,mx,mn,sr:integer;
begin
readln (x,y,z);
if (x>y) and (x>z) then
mx:=x;
if (y>x) and (y>z) then
mx:=y;
if (z>x) and (z>y) then
mx:=z;
if (x<y) and (x<z) then
mn:=x;
if (y<x) and (y<z) then
mn:=y;
if (z<x) and (z<y) then
mn:=z;
println (mx,((x+z+y)-mx-mn),mn);
end.
num1 = input('enter first num')
num2 = input('enter second num')
num3 = input('enter thread num')
if num1 < num2 and num1 < num3:
print(num1,'this num is smaller than other')
elif num1 < num2 and num1 > num3:
print(num3,'this num is smaller than other's')
elif num1 > num2 and num1 < num3:
print(num2,'this num is smaller than other's')
Объяснение:
Sry, I don't know Pascal, I know Python...
Объяснение:
var x,y,z,mx,mn,sr:integer;
begin
readln (x,y,z);
if (x>y) and (x>z) then
mx:=x;
if (y>x) and (y>z) then
mx:=y;
if (z>x) and (z>y) then
mx:=z;
if (x<y) and (x<z) then
mn:=x;
if (y<x) and (y<z) then
mn:=y;
if (z<x) and (z<y) then
mn:=z;
println (mx,((x+z+y)-mx-mn),mn);
end.