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: 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
include iostream using namespace std int main int num... View full answer
Get step-by-step solutions from verified subject matter experts
