Jul-17-2019, 02:01 PM
The main this I see is that you don't need a, b, or c. You could just as easily calculate with the original values:
total1 = distance / mpg total2 = ppg * total1I would maybe rename those variables for clarity:
gallons_used = distance / mpg total_cost = gallons_used * ppg
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures