Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Arithmetic-Integer/Oberon-2/arithmetic-integer.oberon
Normal file
12
Task/Arithmetic-Integer/Oberon-2/arithmetic-integer.oberon
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
MODULE Arithmetic;
|
||||
IMPORT In, Out;
|
||||
VAR
|
||||
x,y:INTEGER;
|
||||
BEGIN
|
||||
Out.String("Give two numbers: ");In.Int(x);In.Int(y);
|
||||
Out.String("x + y >");Out.Int(x + y,6);Out.Ln;
|
||||
Out.String("x - y >");Out.Int(x - y,6);Out.Ln;
|
||||
Out.String("x * y >");Out.Int(x * y,6);Out.Ln;
|
||||
Out.String("x / y >");Out.Int(x DIV y,6);Out.Ln;
|
||||
Out.String("x MOD y >");Out.Int(x MOD y,6);Out.Ln;
|
||||
END Arithmetic.
|
||||
Loading…
Add table
Add a link
Reference in a new issue