+ 1

How do I fix this code so that all of the test cases are correct? (Solved!)

https://code.sololearn.com/cNuUtmqy77A8/?ref=app

2nd Jun 2022, 6:45 AM
Sun1
7 ответов
+ 2
No it is the other way around. In my BMI codecoach it is.
2nd Jun 2022, 7:01 AM
Paul
Paul - avatar
+ 2
It wasn't what i meant, but if you swithed w and h it should have the same result
2nd Jun 2022, 7:11 AM
Paul
Paul - avatar
+ 1
What is the order of the input, is it first height or first weight?
2nd Jun 2022, 6:58 AM
Paul
Paul - avatar
0
height
2nd Jun 2022, 6:58 AM
Sun1
0
height goes first weight goes second
2nd Jun 2022, 6:59 AM
Sun1
0
ok
2nd Jun 2022, 7:01 AM
Sun1
0
it didn't work so I changed the h**2 into w**2 and it worked if that's what you meant.
2nd Jun 2022, 7:04 AM
Sun1