Question: Identify the bug in the following program. int main ( void ) { float miles, / * input - distance in miles. * / kms;
Identify the bug in the following program.
int
mainvoid
float miles, input distance in miles.
kms; output distance in kilometers
Get the distance in miles.
printfEnter the distance in miles;
scanflf &miles;
Convert the distance to kilometers.
kms KMSPERMILE miles;
Display the distance in kilometers.
printfThat equals f kilometers.
&kms;
return ;
Group of answer choices
"float" is not a legal data type
the "main" function returns type int so the "return is not correct since is not an int
the & in the scanf statement should not be there
the & in the printf statement should not be there
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
