+ 2

Why this code doesn’t run correctly?

https://code.sololearn.com/chI3w6nNBkzu/?ref=app I write the code on another app called “pythoni” on iPhone,but the output“bmi” was always “weight”. Example:75/1.8**2=23.14(the right) But:bim=75(this code) Please help me!

7th Aug 2019, 1:08 PM
Chen
Chen - avatar
4 Respuestas
+ 2
Idk. Either the app is screwed up or you didn't give the input correctly.
7th Aug 2019, 1:15 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
Chen what was the code supposed to print ? I entered height = 2 weight = 6 I got bmi = 1.5 which seems correct, so what is the code doing wrong?
7th Aug 2019, 1:18 PM
Dlite
Dlite - avatar
0
It is used to calculate “Body Mass Index”,you can search it on the internet.
7th Aug 2019, 1:31 PM
Chen
Chen - avatar
0
The code works fine given the appropriate number of inputs
7th Aug 2019, 1:36 PM
Dlite
Dlite - avatar