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
Math,
3 months ago
Math,
3 months ago
Math,
3 months ago
Business Studies,
6 months ago
Computer Science,
6 months ago