September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,14 +1,14 @@
|
|||
import system'math.
|
||||
import extensions.
|
||||
import system'math;
|
||||
import extensions;
|
||||
|
||||
public program
|
||||
[
|
||||
var a := console readLineTo(Integer new).
|
||||
var b := console readLineTo(Integer new).
|
||||
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);
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue