Hi,
I have to write a program who calculates the BMI for a male or female, but i got a arror: uninitialized local variable 'geslacht'(gender). Maybe someone knows how to fix?
Hint: You can edit your post, highlight your code and press the <> formatting button. This will not automatically indent your code. That part is up to you.
You can use the preview button at the bottom to see how it looks.
I found the second link to be the most help.
float geslacht, bmi, g, l; //g=gewicht, l=lengte . Why not do double geslacht{}, bmi{}, gewicht{}, lengte{}. Always a good idea to initialize your variables.