summary refs log tree commit diff stats
path: root/examples/maximum.nim
blob: 1e26ee1a720a00e74ec1540252009b89f1cf16af (plain) (blame)
1
2
3
4
5
6
# 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!")