a1439ty_bmiV3 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/a1439ty_bmiV3.rb +3 -3
- data/lib/a1439ty_bmiV3/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c82d50a56e5dddcc0574d21dce45f63a79c640bd
|
4
|
+
data.tar.gz: 47d21bea4a22296452c960aaa4d3b50d6b1f7762
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f6f234eb382c571f3103df7f3899706fcd7591e9c3f2bc05be0fcd231c781ba542ecb09950cc83e3be6978626dea3044ba7de48d51eecde4c2d986234e7fad
|
7
|
+
data.tar.gz: 76365e35ed05f218ef6c9da671a4a7b11e866c72ba79b549334376be20f19fca486d0742bc14939f68fea3d7cc245f59152d61ad8e5b1a227a14d040da4d104a
|
data/lib/a1439ty_bmiV3.rb
CHANGED
@@ -4,10 +4,10 @@ module A1439tyBmiV3
|
|
4
4
|
# Your code goes here...
|
5
5
|
|
6
6
|
print("height(cm):")
|
7
|
-
height = gets.
|
7
|
+
height = gets.to_f
|
8
8
|
print("body weight(kg):")
|
9
|
-
weight = gets.
|
10
|
-
bmi = (weight / (
|
9
|
+
weight = gets.to_f
|
10
|
+
bmi = ( weight / ( height/100)**2)
|
11
11
|
puts("BMI ",bmi)
|
12
12
|
|
13
13
|
end
|