Question: Write a program called multi_input.cpp that prompts the user to enter several integers in any combination of octal, decimal, or hexadecimal, using the 0 and
Write a program called multi_input.cpp that prompts the user to enter several integers in any combination of octal, decimal, or hexadecimal, using the 0 and 0x base suffixes; interprets the numbers correctly; and converts them to decimal form. Then your program should output the values in properly spaced columns like this:

0x43 hexadecimal converts to 67 decimal 0123 octal converts to 83 decimal 65 decimal converts to 65 decimal
Step by Step Solution
3.31 Rating (169 Votes )
There are 3 Steps involved in it
include stdlibfacilitiesh By properly spaced columns in the problem refinition I intended to force the use of fields as opposedto spaces and tabs But ... View full answer
Get step-by-step solutions from verified subject matter experts
