Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Arithmetic-Integer/Modula-3/arithmetic-integer.mod3
Normal file
15
Task/Arithmetic-Integer/Modula-3/arithmetic-integer.mod3
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
MODULE Arith EXPORTS Main;
|
||||
|
||||
IMPORT IO, Fmt;
|
||||
|
||||
VAR a, b: INTEGER;
|
||||
|
||||
BEGIN
|
||||
a := IO.GetInt();
|
||||
b := IO.GetInt();
|
||||
IO.Put("a+b = " & Fmt.Int(a + b) & "\n");
|
||||
IO.Put("a-b = " & Fmt.Int(a - b) & "\n");
|
||||
IO.Put("a*b = " & Fmt.Int(a * b) & "\n");
|
||||
IO.Put("a DIV b = " & Fmt.Int(a DIV b) & "\n");
|
||||
IO.Put("a MOD b = " & Fmt.Int(a MOD b) & "\n");
|
||||
END Arith.
|
||||
Loading…
Add table
Add a link
Reference in a new issue