The following program segment is designed to report which of the positive integers X and Y is a divisor of the other. Is the program segment correct? Explain your answer. if (X if (Y % X == 0): ...



The following program segment is designed to


report which of the positive integers X and Y is


a divisor of the other. Is the program segment


correct? Explain your answer.


if (X


if (Y % X == 0):



print('X is Divisor of Y')


else if (X % Y == 0):



print('Y is Divisor of X')



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here