write a C program that declares an integer variable called
"favorite_number". The program should then prompt the user to enter
their favorite number, and use scanf to read the user's input into
favorite_number. Finally, the program should print a message that
includes the user's input.
1. Declare variable favourite_number
2. Prompt message using printf() to enter number
3. Scanf () to store given input value to address of variable favourite_number
4. Display number using printf()
// Screen shot of program and output
Get Answers For Free
Most questions answered within 1 hours.