Advertisement
EricJohnson

decimal_to_binary

Apr 6th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include "bin_func.hpp"
  3. using namespace std;
  4. int decimal;
  5. char run='y';
  6. while (run = 'y')
  7. {
  8. int main()
  9. {
  10. cout << "Please input the deicmal you want converted to binary: ";
  11. cin >> decimal;
  12. binary(int decimal);
  13. cout << "Would you like to run again(y/n)? ";
  14. cin >> run;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement