*Challenge* : Create a BMI Calculator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

*Challenge* : Create a BMI Calculator

Create a program that will accept input from the user and output their Body Mass Index (BMI). The program must be able to ask the user if they want to use imperial (inches, pounds), or metric (centimeters, kilograms) measurements. The program must be able to output their BMI using BOTH imperial or metric measurements, not just one measurement. i.e. height: 74 (in), weight: 220 (lbs) or height: 188 (cm), weight: 100 (kg)

19th Aug 2017, 6:37 AM
Dalton Ponder
Dalton Ponder - avatar
8 Answers
19th Aug 2017, 5:20 PM
ysraelcon
ysraelcon - avatar
19th Aug 2017, 6:48 AM
Iwan
Iwan - avatar
19th Aug 2017, 9:29 AM
Sapphire
+ 2
Here is mine. Checks for all valid input. Input must be separated into 3 lines, the choice of measurement system, weight, then height. 1 is for metric system, 2 is for imperial https://code.sololearn.com/c9w3Ad96tqv3/?ref=app
19th Aug 2017, 9:30 AM
Vari93
Vari93 - avatar
+ 2
https://code.sololearn.com/cDd6jy7qFpiH/#py
21st Aug 2017, 10:08 AM
Eka Aditya Pramudita
Eka Aditya Pramudita - avatar
5th Sep 2017, 12:34 AM
HJ🐓TDM
0
https://code.sololearn.com/cGdj2FPeVF0t/?ref=app here's mine
1st Nov 2017, 9:40 AM
Saurabh Tiwari
Saurabh Tiwari - avatar
20th Aug 2017, 6:22 PM
sayan chandra
sayan chandra - avatar