+ 1

Wierd outcome with certain input

If I input (25 & 1) or (66 & 2) in my Bmi calculator, it raises an error https://code.sololearn.com/cwuz3rbf5lzg/?ref=app

5th Nov 2019, 1:34 PM
Rosenkilde
Rosenkilde - avatar
4 odpowiedzi
0
Your code doesn't include 25, you should use >= instead.
5th Nov 2019, 2:14 PM
Enzo Falcon
Enzo Falcon - avatar
0
What do u mean with stopping the program? The break statement in the White loop takes care of that?
5th Nov 2019, 2:02 PM
Rosenkilde
Rosenkilde - avatar
- 1
You should use a function to stop the program You should correct your information
5th Nov 2019, 1:48 PM
UMAIR Malik
UMAIR Malik - avatar
- 1
Yes I have been notified, but thank you so much for the quick answer! 😉
5th Nov 2019, 2:18 PM
Rosenkilde
Rosenkilde - avatar