Java Program to Convert Decimal to Binary and Count the Number of 1s

This is a Java Program to Convert a Decimal Number to Binary & Count the Number of 1s. Enter any integer as an input. Now we convert the given decimal input into a binary number with the help of division and modulus operations along with loops and if conditions to get the desired output. Here … Read more

advertisement

Java Program to Convert Binary to Gray Code using Recursion

This is a Java Program to Convert Binary Code of a Number into its Equivalent Gray’s Code Using Recursion. Gray code is a binary numeral system where two successive values differ in only one bit. Enter any binary number as an input. Now we pass the gven number along wth zero to different function where … Read more

advertisement

Java Program to Convert Binary to Gray Code without Recursion

This is a Java Program to Convert Binary Code of a Number into its Equivalent Gray’s Code Without Using Recursion. Gray code is a binary numeral system where two successive values differ in only one bit. Enter any binary number as an input. After that we perform operations like modulo and divsion to convert it … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.