RosettaCodeData/Task/Integer-comparison/ALGOL-W/integer-comparison.alg

15 lines
289 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
begin
integer a, b;
write( "first number: " );
read( a );
write( "second number: " );
read( b );
if a < b then write( a, " is less than ", b );
if a = b then write( a, " is equal to ", b );
if a > b then write( a, " is greater than ", b );
end.