This commit is contained in:
Karan
2021-11-25 20:25:58 +05:30
parent 65c4b167af
commit 1a19d738a9
10 changed files with 0 additions and 0 deletions
+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);