Binary

Write a program that continues to ask the user to enter any decimal number and calculate it’s binary,octal and hexadecimal equivalent.

Questions by dhairaybablani

Showing Answers 1 - 2 of 2 Answers

Badugu

  • Mar 11th, 2015
 

Please try following:

Code
  1. #include<iostream>

  2. #include<fstream>

  3. #include <bitset>

  4. "Enter a decimal Number:""Hexa Decimal:"<<std::hex<<i<<"     Octal:""Binary:""Enter a decimal Number:"

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions