diff options
author | Andreas Rumpf <andreasrumpf@noname> | 2009-09-15 23:22:22 +0200 |
---|---|---|
committer | Andreas Rumpf <andreasrumpf@noname> | 2009-09-15 23:22:22 +0200 |
commit | 66a7e3d37c0303997a6b1a3b7ec263dfb8c07748 (patch) | |
tree | 40ae1ab8aeb9086b7310ea73ab8a2ed6b597f88b /web/snippets | |
parent | 300430fbba28b408f7ac86ca46b03d9d50839399 (diff) | |
download | Nim-66a7e3d37c0303997a6b1a3b7ec263dfb8c07748.tar.gz |
added tools and web dirs
Diffstat (limited to 'web/snippets')
-rwxr-xr-x | web/snippets/snippet1.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/snippets/snippet1.nim b/web/snippets/snippet1.nim new file mode 100755 index 000000000..05359a0e0 --- /dev/null +++ b/web/snippets/snippet1.nim @@ -0,0 +1,4 @@ +import strutils +echo "Give a list of integers (separated by spaces): ", + stdin.readLine.splitSeq.each(parseInt).max, + " is the maximum!" |