The Octal numeral system uses the number 8 as its base. As a base-8 numeral system, it consists of only eight numbers: 0,1,2,3,4,5,6 and 7.
The Binary numeral system uses the number 2 as its base. As a base-2 numeral system, it consists of only two numbers: 0 and 1.
The decimal numeral system is the most commonly used and the standard system in daily life. It uses the number 10 as its base. Therefore, it has 10 symbols: The numbers from 0 to 9; namely 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
The Binary numeral system uses the number 2 as its base. As a base-2 numeral system, it consists of only two numbers: 0 and 1.
The decimal numeral system is the most commonly used and the standard system in daily life. It uses the number 10 as its base. Therefore, it has 10 symbols: The numbers from 0 to 9; namely 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
C++ program to convert Binary number to Octal
Output
Enter a binary number : 1010
1010 in binary = 12 in octal
C++ Program to convert Octal number to Binary
Output
Enter an octal number : 23
23 in octal = 10011in binary
Post a Comment
Thank you for vising