+ 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

18th Jun 2021, 3:37 AM
J Jenshika
J Jenshika - avatar
4 ответов
+ 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
18th Jun 2021, 6:34 AM
Arsenic
Arsenic - avatar
+ 1
Arsenic I want to return the count1,count2,count3,count4 in to the main method. That's the problem
18th Jun 2021, 6:42 AM
J Jenshika
J Jenshika - avatar
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 )
18th Jun 2021, 12:03 PM
Arsenic
Arsenic - avatar
0
Arsenic Thankyou so much for your response 🤗 it was really helpful
18th Jun 2021, 12:04 PM
J Jenshika
J Jenshika - avatar