0

Query on bmi calculator program

I am able to run my program and works well with colab.. but here if I give inputs for test case 1 it says passed and when I move on to test case 2 and give its input, it says test case 2 passed but test case 1 failed.... pls hlp me out friend...... how do I satisfy all the 5 test cases in a single program in bmi calculator problem???

7th Jan 2022, 3:40 PM
SUTHARSHANA GAYATHRI U.S.
SUTHARSHANA GAYATHRI U.S. - avatar
2 Answers
+ 6
You need to write a code that will work for any input not just that one test case. x = float(input())...and so on
7th Jan 2022, 3:52 PM
Simba
Simba - avatar
0
S I did but is it no way displaying output .... I will attach my program here.
7th Jan 2022, 3:53 PM
SUTHARSHANA GAYATHRI U.S.
SUTHARSHANA GAYATHRI U.S. - avatar