Steps;
1.Read the decimal number.
2.Divide the decimal number until get zero
3.Find the remainder from rem= dec%2.
4.Push the remainder values int to the stack
6.Then pop the values from the stack until the stack become empty.
Implementation
Tuesday, January 5, 2016
Decimal to binary Representaion using stack
8:28 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment