Question #239782

Write a program that examines two numbers and exchanges their position using only the else clause


Expert's answer

A = int(input())
B = int(input())


if A != B:
    A = A + B
    B = A - B
print(A,B)
LATEST TUTORIALS
APPROVED BY CLIENTS