Advertisement
Guest User

JEFFREY PALMES LULONG SA DROGA

a guest
Jan 30th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include<iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4.  
  5. float cm;
  6. float in;
  7. float ft;
  8.  
  9. int main()
  10. {
  11. cout << "Please input the number you wish to be converted "
  12. "into inche/s and feet/foot : "
  13. << endl << endl;
  14. cin >> cm;
  15.  
  16. cout << endl
  17. << " inche/s is " << (cm / 2.54) << " in."
  18. << '\n'
  19. << " foot/feet is " << (cm / 30.48) << " ft. "
  20. << endl << endl;
  21. system("PAUSE");
  22. return EXIT_SUCCESS;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement