Hi everyone, first post and very, very new to C. I'm taking a class to learn programming and while doing homework I ran into a problem that I can't figure out. I'm trying to get the output to show "mph" which I added below in red, and I've tried adding a string but cannot get it to work. The code is below, If anyone could point me in the right direction on how to get "mph" added I'd greatly appreciate it.
int a;
float b,c,d,e,total;
a = 100;
b = 3;
c = 19;
d = 3;
e = 4;
total = e+d+a/c*b;
printf("The total miles driven per day: %d\n", a);
printf("The cost per gallon of gasoline: $%0.2f\n", b);
printf("The average miles per gallon: %.0f\n", c);
printf("The parking fees per day: $%0.2f\n", d);
printf("The tolls per day: $%0.2f\n", e);
printf("Your daily cost of driving to work is: $%0.2f\n", total);
system("PAUSE");
}
/*
The total miles driven per day: 100
The cost per gallon of gasoline: $3.00
The average miles per gallon: 19 mph
The parking fees per day: $3.00
The tolls per day: $4.00
Your daily cost of driving to work is: $22.79
Press any key to continue . . ./