Files
Nim/examples/maximum.nim
2013-03-16 23:53:07 +01:00

7 lines
173 B
Nim

# Test high level features
import strutils
echo "Give a list of numbers (separated by spaces): "
stdin.readLine.split.map(parseInt).max.`$`.echo(" is the maximum!")