This is the code:
I cant for the life of me figure out why this wont execute, any help that anyone can offer is appreciated.Code:#include <stdio.h> int main() { int miles; int gallons; int mileage; printf("Enter the gallons used: "); scanf("%d", &gallons); printf("Enter the miles driven: "); scanf("%d", &miles); mileage = miles / gallons; /* Calculates the tank's mileage */ scanf("%d", &mileage); printf("The miles per gallon for this tank was " , &mileage); return 0; }
Thank you very much.