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

C Program Write a C program that asks the user for an

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!