begin writeln('Enter the height of the first boy: '); readln(height1);
writeln('Enter the height of the second boy: '); readln(height2);
if height1 > height2 then writeln('The first boy is taller than the second boy by ', height1 - height2:0:2, ' cm.') else if height2 > height1 then writeln('The second boy is taller than the first boy by ', height2 - height1:0:2, ' cm.') else writeln('The boys are of the same height.');
program CompareHeight;
var
height1, height2: real;
begin
writeln('Enter the height of the first boy: ');
readln(height1);
writeln('Enter the height of the second boy: ');
readln(height2);
if height1 > height2 then
writeln('The first boy is taller than the second boy by ', height1 - height2:0:2, ' cm.')
else if height2 > height1 then
writeln('The second boy is taller than the first boy by ', height2 - height1:0:2, ' cm.')
else
writeln('The boys are of the same height.');
end.