Question: (25 min) Develop a complete C++ program that perform the following tasks: Prompt the user to input two integers, num 1 and num_2. Use

(25 min) Develop a complete C++ program that perform the following tasks: 

(25 min) Develop a complete C++ program that perform the following tasks: Prompt the user to input two integers, num 1 and num_2. Use nested if structure to check if num_1 is evenly divisible by num 2, then check if they are the same number. Otherwise, print out an appropriate message. For example, four different scenarios and their corresponding messages are given in the following table. num_1 num_2 Message to be displayed 8 4 They are evenly divisible! 8 00 8 5 5 00 They are the same! They are not evenly divisible! Opps, the second number is larger!

Step by Step Solution

3.39 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include iostream using namespace std int main int num... View full answer

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 Programming Questions!