Conversion of Numbers in C++
With the help of C++ Language you can convert any number from decimal to binary and binary to decimal, binary to octal, binary to hexadecimal, decimal to octal and etc.
Decimal to Binary Conversion:
Output :
Enter any number : 7 Binary number is : 111
Convert Decimal to Octal in C++
Decimal number have base 10 and Octalnumber have base 8
Example :
Output :
Enter any number : 23 Binary number is : 27
Convert Decimal to Hexadecimal in C++
Decimal number have base 10 and Hexadecimal number have base 16.
Example :
Output :
Enter any number : 231 Hexadecimal number : E7