Files
Nim/examples/maximum.nim
2010-02-14 00:29:35 +01:00

7 lines
174 B
Nim

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