I'm just starting out with C++, and I'm experimenting with different functions and uses. And this particular program is supposed to calculate how much gas you should put in your car based on how far you just traveled.
The user enters the value for PirceOfGas, but when it comes time later to calculate how much gas must be put in the car, the math is completely off and I cannot figure out why. Also, when it is supposed to output the value of PriceOfGas the decimel isn't there, just the first (whole) number.