Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -6,12 +6,12 @@
|
|||
|
||||
#symbol program =
|
||||
[
|
||||
#var(type:int) a := consoleEx readLine:(Integer new) int.
|
||||
#var(type:int)b := consoleEx readLine:(Integer new) int.
|
||||
#var a := console readLine:(Integer new).
|
||||
#var b := console readLine:(Integer new).
|
||||
|
||||
consoleEx writeLine:a:" + ": b:" = ":(a + b).
|
||||
consoleEx writeLine:a:" - ": b:" = ":(a - b).
|
||||
consoleEx writeLine:a:" * ": b:" = ":(a * b).
|
||||
consoleEx writeLine:a:" / ": b:" = ":(a / b). // truncates towards 0
|
||||
consoleEx writeLine:a:" %% ":b:" = ":(a mod:b). // matches sign of first operand
|
||||
console writeLine:a:" + ": b:" = ":(a + b).
|
||||
console writeLine:a:" - ": b:" = ":(a - b).
|
||||
console writeLine:a:" * ": b:" = ":(a * b).
|
||||
console writeLine:a:" / ": b:" = ":(a / b). // truncates towards 0
|
||||
console writeLine:a:" % ":b:" = ":(a mod:b). // matches sign of first operand
|
||||
].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue