class A15666011Konagayoshi::Test

Your code goes here…

Public Class Methods

bmi() click to toggle source
# File lib/a15666011_konagayoshi.rb, line 10
def self.bmi
  puts'Calculation of BMI'
  print'Input your Height(centi meter):'
  input_height = gets.chomp
  print'Input your Weight(kg):'
  input_weight = gets.chomp
  bmi = (input_weight.to_f / ((input_height.to_f / 100) ** 2)).round(3)
end
hi() click to toggle source
# File lib/a15666011_konagayoshi.rb, line 7
def self.hi
  puts "Hello world!"
end