Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- double gallons, miles;
- cout << "Enter miles travelled: "; cin >> miles;
- cout << "Enter gallons of gas used: "; cin >> gallons;
- cout << miles / gallons << " MPG";
- cin.get(), cin.get();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement