-
-
Save Luomint/669962b3f25d068cb2cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#BMI weight in kg x / height in meters **2 | |
puts "enter weight" | |
weight = gets.to_i | |
puts "enter height" | |
height = gets.to_i | |
bmi = (weight / (height ** 2)) | |
puts "your bmi is #{bmi}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Entered 1.89 then 70, then the (wrong) answer is 70