16 lines
495 B
Plaintext
16 lines
495 B
Plaintext
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);
|
|
}
|