Beware of bugs in the above code; I have only proved it correct, not tried it. Donald E. Knuth
A Binary Digit can be 0 or 1. A Binary Number made up Binary Digits.
Write a program to convert the Decimal number to binary using stack. Get decimal input and print the Binary numbers
Binary value of 2 is: 10 Binary value of 15 is: 1111 Binary value of 23 is: 10111