Choose the correct output of the following Python program snippet: A, B = 95,…

PYQ EMRS TGT/PGT (ESSE) 2025

Choose the correct output of the following Python program snippet:

A, B = 95, 65

while A != B:

if A > B:

A -= B

else:

B -= A

print(A)

  1. A.

    1

  2. B.

    5

  3. C.

    15

  4. D.

    30

Attempted by 722 students.

Sign up free to check your answer

Sign up free

Explore the full course: Emrs Cs Tier 2

Loading lesson…