Created
April 18, 2019 07:06
-
-
Save andraantariksa/82807a3200451218c2b1a9d4bfefee5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main(int argc, const char *argv[]){ | |
float distance, fuel; | |
std::cout << "Distance traveled in mile:\n"; | |
std::cin >> distance; | |
std::cout << "Fuel used in gallon:\n"; | |
std::cin>> fuel; | |
std::cout << fuel / distance << " gallon/mile\n"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment