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
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
Science,
2 months ago
Science,
2 months ago
Business Studies,
4 months ago
Computer Science,
4 months ago