program raf105;
var x,y,S: integer;
begin
write('Ввод: ');
readln(x,y);
if x>y then
x:= x-10;
y:= y+24;
end
else
x:= x+5;
y:= y-7;
end;
S:= x-y;
writeln('Вывод: ',x,' ',y,' ',S);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program raf105;
var x,y,S: integer;
begin
write('Ввод: ');
readln(x,y);
if x>y then
begin
x:= x-10;
y:= y+24;
end
else
begin
x:= x+5;
y:= y-7;
end;
S:= x-y;
writeln('Вывод: ',x,' ',y,' ',S);
end.
Язык PascalABC