September Morn Update

This commit is contained in:
Ingy döt Net 2019-09-12 10:33:56 -07:00
parent 4e2d22a71d
commit aac6731f2c
6856 changed files with 141342 additions and 21127 deletions

View file

@ -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
}