Question: --- C PROGRAM --- Problem 3. Number Base Conversion (25 points) Write a program that takes a decimal integer number as input and convert it
--- C PROGRAM ---

Problem 3. Number Base Conversion (25 points) Write a program that takes a decimal integer number as input and convert it to corresponding binary number and octal number. You are required to write functions for the conversion and call it from the main function. You can use as many functions as you want. For conversion techniques, check the following links- ht Sample Input and Output: (Your code should print the red texts on the screen. Black texts are sample user inputs) Sample Input Sample Output Enter Decimal Number: 34 34 in Binary: 100010 4 in Octal: 42 Enter Decimal Number: 9 475 in Binary: 1001 475 in Octal: 11 Enter Decimal Number: 475 475 in Binary: 111011011 475 in Octal: 733
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
