Updating built in Io code to use += instead of x = x + y
[io/quag.git] / samples / shootout / sumcol.io
blobd549c8c29b5148a79926eb6e0872b16255d6e7b4
1 #!/usr/bin/env io
3 /* The Great Computer Language Shootout
4 http://shootout.alioth.debian.org
6 Contributed by Ian Osgood */
8 sum := 0
9 file := File standardInput
10 while (line := file readLine, sum = sum + line asNumber)
11 sum println