hello .. how can i write a function that convert a decimal number to binary in a stack?
i need a simple implementation
1)read the number
2) loop fpr checking if the number >0
3)print it

pop and push are allowed
thanks alot