Question: 1. Write a complete C++ program that does the following: - It asks the user to enter their age - If a negative integer is

 1. Write a complete C++ program that does the following: -

1. Write a complete C++ program that does the following: - It asks the user to enter their age - If a negative integer is entered, ask the user repeatedly until a positive integer is entered. - The program should print the word Hello once for each year of the user's age. - Here is an example of how the program should work: - Enter your age: 5 - Hello Hello Hello Hello Hello

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!