Write a C++ program that prompts user to enter a number. Define two functions (a) void dectobin(int)
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a C++ program that prompts user to enter a number. Define two functions (a) void dectobin(int) and (b) void dectooct(int). Each function should take the decimal number entered by the user as an argument and print the (a) binary (b) octal equivalent of the number respectively using stack.
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: