Question: create a c + + program that define two functions: One function collects an integer, between 1 and 5 , from the user and returns

create a c++ program that define two functions:
One function collects an integer, between 1 and 5, from the user and returns the collected integer. If the user entered a number that is not between 1 and 5, the program will ask the user to enter another number. The function only returns a number that is between 1 and 5.
The second function will use the collected integer from the previous function and print from the collected number up to 10, inclusive, in step of 1.

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!