People think that computer science is the art of geniuses but the actual reality is the opposite, just many people doing things that build on each other, like a wall of mini stones. Donald Knuth

MyDecimalToBinary

Language Java | Level Intermediate | Category Data structure | August 30, 2015 2:02 pm


Data structure Description

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


Output

   					 

Binary value of 2 is: 10
Binary value of 15 is: 1111
Binary value of 23 is: 10111

				    

Comments


No comments available!

Please login to add comments.