Question: write a complete C + + program that does the following: prompts the user for two positive integer. call the first integer num 1 and

write a complete C++ program that does the following: prompts the user for two positive integer. call the first integer num1 and the second integer num2. num2 must be less than half the value of num1, if num2 is larger than half the value of the num1, end the program.
prints all numbers from 1 through num1 that are evenly divisible by num2. then, prints all numbers from 1 through num2 that are not evenly divisible by num2.

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!