Java code to Convert Binary Number to Decimal Number

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

hi sir, today i have attended one interview, in the written test they have asked this program, fortunately i have seen your video. Thank you sir for your channel

harikarathnala
Автор

Thanks a lot sir Thanks for your help... Well Explained....

shortmusic
join shbcf.ru