Module: A1548syYamamoto

Defined in:
lib/a1548sy_yamamoto.rb,
lib/a1548sy_yamamoto/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.bmi(height, weight) ⇒ Object



9
10
11
12
# File 'lib/a1548sy_yamamoto.rb', line 9

def bmi(height,weight)
   bmi = weight / (height/100.0) ** 2
   print("Your BMI is ", bmi, ".\n") 
end

.hello(name) ⇒ Object



4
5
6
# File 'lib/a1548sy_yamamoto.rb', line 4

def hello(name)
   print "Hello, " , name, ".\n"
end