repo.or.cz
/
io
/
quag.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updating built in Io code to use += instead of x = x + y
[io/quag.git]
/
samples
/
shootout
/
sumcol.io
blob
d549c8c29b5148a79926eb6e0872b16255d6e7b4
1
#!/
usr
/
bin
/
env io
2
3
/* The Great Computer Language Shootout
4
http://shootout.alioth.debian.org
5
6
Contributed by Ian Osgood */
7
8
sum
:=
0
9
file
:=
File
standardInput
10
while
(
line
:=
file readLine
,
sum
=
sum
+
line asNumber
)
11
sum println