Question: C Program Write a C program that asks the user for an integer value from four to nine. If the number is not within the
C Program

Write a C program that asks the user for an integer value from four to nine. If the number is not within the limits, then the question is asked again until it is. The program prints the message "Hello there!" the number of times the user entered. If the number of printed lines is greater than five, also print the message "Please respond!" after displaying the "Hello there!" message. At the end of the program print the line "It is polite to respond when greeted, you know." Sample output of the program: Enter a number: 2 Enter a number: 11 Enter a number: 7 Hello there! Hello there! Hello there! Hello there! Hello there! Hello there! Please respond! Hello there! Please respond! It is polite to respond when a greeted, you know
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
