Question: This is C language. So, please write the code with C language. Thanks for your help! Program 2 A car's miles-per-gallon (MPG) can be calculated
This is C language. So, please write the code with C language. Thanks for your help!

Program 2 A car's miles-per-gallon (MPG) can be calculated with the following formula: Design a function called mpg that can be run from your chapter 2 driver program. It should have the following function header: The program should ask the user for the number of miles driven and the gallons of gas used. MPG = Miles driven / Gallons of gas used void mpg(void) Select appropriate data types for each variable Calculate the car's miles-per- gallon and display the results. Test several times before submitting! Only attach your C program file for this function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
