Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Integer-comparison/Modula-3/integer-comparison.mod3
Normal file
18
Task/Integer-comparison/Modula-3/integer-comparison.mod3
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
MODULE Main;
|
||||
|
||||
FROM IO IMPORT Put, GetInt;
|
||||
FROM Fmt IMPORT Int;
|
||||
|
||||
VAR a,b: INTEGER;
|
||||
|
||||
BEGIN
|
||||
a := GetInt();
|
||||
b := GetInt();
|
||||
IF a < b THEN
|
||||
Put(Int(a) & " is less than " & Int(b) & "\n");
|
||||
ELSIF a = b THEN
|
||||
Put(Int(a) & " is equal to " & Int(b) & "\n");
|
||||
ELSIF a > b THEN
|
||||
Put(Int(a) & " is greater than " & Int(b) & "\n");
|
||||
END;
|
||||
END Main.
|
||||
Loading…
Add table
Add a link
Reference in a new issue