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

15 lines
289 B
Plaintext

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.