#!/usr/bin/ruby
amount = ARGV[0].to_f
remainder = amount % 5
base_amount = amount - remainder
if (remainder> 2)
x = 5
else
x = 0
end
puts (base_amount + x)
_______________________________________________ coders mailing list [email protected] http://lists.slug.org.au/listinfo/coders
