Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5.  
  6. {
  7. double liter = 0;
  8.  
  9. for(int gallon = 10; gallon <= 20; gallon++)
  10. {
  11. liter = gallon * 3.785;
  12. cout << gallon << " " << liter << endl;
  13. }
  14. while(cin.get() != '\n'){}
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement