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

14 lines
325 B
Text
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
begin
integer a, b;
outstring(1,"First number : ");
ininteger(0, a);
outstring(1,"Second number: ");
ininteger(0,b);
if a = b then outstring(1,"The two numbers are equal");
if a < b then outstring(1,"The first number is less than the second");
if a > b then outstring(1,"The first number is greater than the second");
end