Computer Science, asked by LoknathDas31, 4 months ago

Write a menu driven program in java to convert decimal number to binary and binary number to

decimal based on user choice.​

Answers

Answered by jyotijyoti99581
0

Java program to convert decimal to binary

There are three following ways to convert Decimal number to binary number:

1) Using toBinaryString() method of Integer class.

2)Do conversion by writing your own logic without using any predefined methods.

3)Using Stack.

Similar questions