Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions