June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
10
Task/Arithmetic-Integer/Lingo/arithmetic-integer.lingo
Normal file
10
Task/Arithmetic-Integer/Lingo/arithmetic-integer.lingo
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- X, Y: 2 editable field members, shown as sprites in the current GUI
|
||||
x = integer(member("X").text)
|
||||
y = integer(member("Y").text)
|
||||
|
||||
put "Sum: " , x + y
|
||||
put "Difference: ", x - y
|
||||
put "Product: " , x * y
|
||||
put "Quotient: " , x / y -- Truncated towards zero
|
||||
put "Remainder: " , x mod y -- Result has sign of left operand
|
||||
put "Exponent: " , power(x, y)
|
||||
Loading…
Add table
Add a link
Reference in a new issue