Nim/examples/maximum.nim
Andreas Rumpf 36818817bd version0.7.10
2009-06-08 08:13:09 +02:00

6 lines
177 B
Nim

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