Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Arithmetic-Integer/Elena/arithmetic-integer.elena
Normal file
15
Task/Arithmetic-Integer/Elena/arithmetic-integer.elena
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import system'math;
|
||||
import extensions;
|
||||
|
||||
public program()
|
||||
{
|
||||
var a := console.loadLineTo(new Integer());
|
||||
var b := console.loadLineTo(new Integer());
|
||||
|
||||
console.printLine(a," + ",b," = ",a + b);
|
||||
console.printLine(a," - ",b," = ",a - b);
|
||||
console.printLine(a," * ",b," = ",a * b);
|
||||
console.printLine(a," / ",b," = ",a / b); // truncates towards 0
|
||||
console.printLine(a," % ",b," = ",a.mod:b); // matches sign of first operand
|
||||
console.printLine(a," ^ ",b," = ",a ^ b);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue