Hello im doing some coding homework and i stumbled upon an error while writing some if-statements.
if ((my_weight / (my_height * my_height)) < 18.5) { bmi_state = "Underviktig" }
if ((my_weight / (my_height * my_height)) < 18.5) { bmi_state = "Normalviktig" }
if ((my_weight / (my_height * my_height)) < 18.5) { bmi_state = "Överviktig" }
if ((my_weight / (my_height * my_height)) < 18.5) { bmi_state = "Fet" }
And with the error: CS1002 (; expected)
Great regards, Oscar Andersson from Sweden.
Aucun commentaire:
Enregistrer un commentaire