Рет қаралды 16,719
This program demonstrates the logic and code for converting the binary number to decimal number without using any in built function.
To convert a binary number to a decimal number we need to multiply the binary digits from right to left by 2 to the power of 0 to the total digits -1.
Example:
1010 = ( 1*2(3) + 0*2(2) + 1*2(1) + 0*2(0) = 10
If you like this video, don't forget to subscribe , like and share this video
Please promote this channel , by sharing it with your friends who are searching / preparing for IT jobs in programming..
If you have any coding challenges ( questions ) , post them in the comment, we will upload the videos for the same