Quote:
|
Originally Posted by strider496
how do i add num1 to totalgallon?
|
totalgallon = totalgallon + num1;
Or you could shorthand it by:
totalgallon += num1;
Quote:
|
how do i add num2 to totalmiles?
|
totalmiles = totalmiles + num2;
or
totalmiles += num2;
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
|