Given a decimal number from the user your program should convert it to binary using stack’s functions. Using stacks write a C++ program that asks the user to enter a decimal number and then prints to the user the binary version of the given number. i.e.: 22 (decimal) its binary is 10110.
Comments
Leave a comment