0
Bmi calculator not working
plz help https://code.sololearn.com/c7L146qj8LB4/?ref=app https://code.sololearn.com/c7L146qj8LB4/?ref=app
3 Answers
+ 2
You should place parentheses around b*b. So instead of a/b*b, you would write a/(b*b). The order of operations is dividing a by b, then multiplying b by b again, giving you the original a value. With parentheses, b*b will be solved first, then a will divide by that value.
+ 1
Like NULL said, it's the parenthesis. Just remember that operators work the same in coding as they do in maths, ie Brackets Over Division, Multiplication, Addition and Subtraction (BODMAS).
0
thanks u !!!!!