Jump to content

Integer comparison: Difference between revisions

Line 382:
MODULE Main;
 
FROM IO IMPORT Put, GetInt;
FROM Fmt IMPORT Int ;
 
VAR a,b: INTEGER;
 
BEGIN
a := IO.GetInt();
b := IO.GetInt();
IF a < b THEN
Put(Int(a) & " is less than " & Int(b) & "\n");
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.