Question: Assume that a program reads three integer values, named input, X, and Y. Write few lines of code to check whether the value of variable

Assume that a program reads three integer values, named input, X, and Y.

Write few lines of code to check whether the value of variable input is divisible by the values of X and Y.

Next, check whether the value of variable input is divisible by the values of X or Y but not both. Print proper message in each case.

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!