Question: Please write the code in C language and please have the output look as above please and thank you. Write a program that will use

Please write the code in C language and please have the output look as above please and thank you.
Write a program that will use recursion to output the binary representation of any positive integer. You may not use any loops (for, while, do-while) in your program. Your program should call a function called print_binary that takes one argument of type integer and will output the number's binary representation to the screen. The program enables the user to enter the integer number. The number must be greater than or equal to 0 . If the entered input is invalid, the program should allow re-entering the number until it is correct. Your strategy for this assignment should be to only output one of the digits per function call. You will find the arithmetic operators / (division) and \% (modulo) useful for this program. The method that we use for this recursive program closely resembles the repeated division method, which was explained in class for converting base 10 numbers to binary. Here is a sample run of the program with invalid inputs and then with the correct input of 43 as an argument to the function. You should know that the newline at the end of the binary number was printed in the main program after the function print_binary was called and was not part of the print_binary function itself. C: Microsoft Visual Studio Debug Console Enter an integer: 88 Enter an integer: why Enter an integer: 43 101011 Here is one more run of the program using the number 123456789 as an argument to the function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
