YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import system'math.
|
||||
import extensions.
|
||||
|
||||
public program =
|
||||
public program
|
||||
[
|
||||
var a := console readLineTo(Integer new).
|
||||
var b := console readLineTo(Integer new).
|
||||
|
|
@ -11,4 +11,4 @@ public program =
|
|||
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
|
||||
].
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
REBOL [
|
||||
Title: "Integer"
|
||||
Author: oofoe
|
||||
Date: 2010-09-29
|
||||
URL: http://rosettacode.org/wiki/Arithmetic/Integer
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue