+ 1
There is a problem with my code.I want calculate BMI values and store in a array. Can anyone help me with this please?
I want store bmi values in an array and make some calculations by using that array.but in my code, there is a problem that is getting only inputs after that it's not showing anything . https://code.sololearn.com/cOxrTlkB6eQs/?ref=app
4 Respuestas
+ 2
Your program is working as intended. What's the problem you are facing here ?
Tested with following input :-
141 142 143 144 145
45 46 57 58 59
+ 1
Arsenic I want to return the count1,count2,count3,count4 in to the main method. That's the problem
0
Jane Jorgia an easier way of doing that is to pass "BMICategory()" function the following variables ( or maybe a data structure containing them all ) as the parameter and change them accordingly in the function itself ( don't forget to send the reference of the variable and not it's copy )
0
Arsenic Thankyou so much for your response 🤗 it was really helpful