double MPG ( double sizeoftank, double number of milest, double gasleftintank)
{
double numberofmilest;
numberofmilest=sizeoftank/gasleftintank;
return numberofmilest;
}
Done
I have not run the function in a program, its the freaking math of this thats pissing me off, this shit is frustrating
miles / gallons = mpg
Reputation Points: 11
Solved Threads: 3
Junior Poster in Training
Offline 66 posts
since Nov 2007