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
Get step-by-step solutions from verified subject matter experts
