Sha256: eef37b1bb22029e78239d612e92a40801e9f85b8806025efe81efd4cb017aa90
Contents?: true
Size: 361 Bytes
Versions: 2
Compression:
Stored size: 361 Bytes
Contents
require "gem_team1misson2/version" class Main def bmi?(height, weight) s = weight / ( height / 100.0 ) ** 2 return s.round(2) end def message(height, weight) t = bmi?(height, weight) if t < 20.0 return "good" else return "bad" end end height = ARGV[0].to_f weight = ARGV[1].to_f main = Main.new main.message(height, weight) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gem_team1misson2-0.2.0 | lib/gem_team1misson2.rb |
gem_team1misson2-0.1.0 | lib/gem_team1misson2.rb |