Integer comparison: Difference between revisions
Content deleted Content added
Line 382: | Line 382: | ||
MODULE Main; |
MODULE Main; |
||
FROM IO IMPORT Put ; |
|||
IMPORT IO; |
|||
FROM Fmt IMPORT Int ; |
|||
VAR a,b: INTEGER; |
VAR a,b: INTEGER; |
||
Line 390: | Line 391: | ||
b := IO.GetInt(); |
b := IO.GetInt(); |
||
IF a < b THEN |
IF a < b THEN |
||
⚫ | |||
IO.PutInt(a); |
|||
⚫ | |||
IO.PutInt(b); |
|||
IO.Put("\n"); |
|||
ELSIF a = b THEN |
ELSIF a = b THEN |
||
⚫ | |||
IO.PutInt(a); |
|||
⚫ | |||
IO.PutInt(b); |
|||
IO.Put("\n"); |
|||
ELSIF a > b THEN |
ELSIF a > b THEN |
||
⚫ | |||
IO.PutInt(a); |
|||
⚫ | |||
IO.PutInt(b); |
|||
IO.Put("\n"); |
|||
END; |
END; |
||
END Main. |
END Main. |