+ 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!
4 Respuestas
+ 2
Idk. Either the app is screwed up or you didn't give the input correctly.
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?
0
It is used to calculate “Body Mass Index”,you can search it on the internet.
0
The code works fine given the appropriate number of inputs