prog.c: In function ‘main’:
prog.c:11:27: error: expected expression before ‘%’ token
scanf("%f, %f", &height, %weight);
^
prog.c:20:2: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else if (bmi >= 18.5 && bmi < 24.9); {
^~~~
prog.c:20:39: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
else if (bmi >= 18.5 && bmi < 24.9); {
^
prog.c:23:1: error: ‘else’ without a previous ‘if’
else if (bmi >= 25 && bmi < 29.9) {
^~~~
prog.c:27:2: warning: implicit declaration of function ‘prinf’ [-Wimplicit-function-declaration]
prinf("\nObesity");
^~~~~