Write a C program to read binary number from user and convert to octal number system. How to convert from binary number system to octal number system in C. Logic to convert binary number to octal number system in C program. Example Input Input binary number: 00110111 Output Octal number: 67 Binary Number System Binary number system is a base 2 number system. Binary number system uses only 2 symbols to represent all its numbers i.e. 0 and 1 . Octal Number System Octal number system is a base 8 number system. Octal number system uses 8 symbols to represent all its numbers i.e. 0 1 2 3 4 5 6 7 Logic to convert Binary to Octal number system To make things simple and sound, I have divided the logic in two easy steps. 1. Group all binary bits to 3 digits starting from right side. 2. ...
Posts
Showing posts from July, 2017
WAP to convert binary to Octal number system
- Get link
- X
- Other Apps
Write a C program to read binary number from user and convert to octal number system. How to convert from binary number system to octal number system in C. Logic to convert binary number to octal number system in C program. Example Input Input binary number: 00110111 Output Octal number: 67 Binary Number System Binary number system is a base 2 number system. Binary number system uses only 2 symbols to represent all its numbers i.e. 0 and 1 . Octal Number System Octal number system is a base 8 number system. Octal number system uses 8 symbols to represent all its numbers i.e. 0 1 2 3 4 5 6 7 Logic to convert Binary to Octal number system To make things simple and sound, I have divided the logic in two easy steps. 1. Group all binary bits to 3 digits starting from right side. 2. ...