I just spotted that by chance from now on don't tell us what the output wasn't tell us what it was. We can't tell much just from what you expect the programme to do can we?
Type: Posts; User: Faz
I just spotted that by chance from now on don't tell us what the output wasn't tell us what it was. We can't tell much just from what you expect the programme to do can we?
So what was the output? You have gallons as an int but you are passing it a double.
Well you tell us what is actually happening now?
OK first of all see what happens when you change
distance = miles;
for
miles = distance;