because the scanf function can not handle a string if you told it that you would enter a floating value.
Type: Posts; User: benjaminp
because the scanf function can not handle a string if you told it that you would enter a floating value.
your program should write user's input into a string and then if it is correct convert it to a number and then calculate bmi.
wait, i am working on it.
scanf referencescanf - C++ Reference