Question: Write a C program that prompts the user to type a number. Have your program accept the number as an integer and immediately display the
Write a C program that prompts the user to type a number. Have your program accept the number as an integer and immediately display the integer using a printf() function call. Run your program three times. The first time you run the program, enter a valid integer number; the second time, enter a double-precision number; and the third time, enter a character. Using the output display, see what number your program actually accepted from the data you entered.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
