Project 2

This commit is contained in:
Karan
2021-11-24 19:17:08 +05:30
committed by GitHub
parent fd7ccde578
commit 0aa61dee58
+9
View File
@@ -0,0 +1,9 @@
//1 inch = 2.54 centimetres.
//2.2046 pounds in a kilo
let inches = 72;
let pounds = 180;
let weight = pounds / 2.2046; // in kilos
let height = inches * 2.54; // height in centimetres
console.log(weight, height);
let bmi = weight/(height/100*height/100);
console.log(bmi);