From db6a6ecfa350cae29739c59df1210d8f76a479c9 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Thu, 5 Dec 2013 07:56:38 +0100 Subject: init --- sum | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 sum (limited to 'sum') diff --git a/sum b/sum new file mode 100755 index 0000000..3fca95e --- /dev/null +++ b/sum @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby + +sum = 0.0 +while line = STDIN.gets + sum += line.strip.to_f +end +puts sum + -- cgit v1.2.3