var r, b, s, d: integer;
begin
writeln('Enter two integers (r, b): ');
readln(r, b);
if (r + b > 100) then
s := (r + b) div 2
else
d := abs(r - b);
writeln('Result: ', s, d);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var r, b, s, d: integer;
begin
writeln('Enter two integers (r, b): ');
readln(r, b);
if (r + b > 100) then
s := (r + b) div 2
else
d := abs(r - b);
writeln('Result: ', s, d);
end.