module BmicalcB1528at
Constants
- VERSION
Public Class Methods
hi()
click to toggle source
# File lib/bmicalc_b1528at.rb, line 4 def self.hi puts "Check! BMI" puts "Please enter your height." h = gets.to_f puts "Please enter your weight." w = gets.to_f bmi = w / ( ( h / 100 ) ** 2) puts "Your BMI is", bmi end