#Program to swap between two numbers
x=input("Enter the value of X:")
y=input("Enter the value of Y:")
s=y
y=x
x=s
print("The swapped value of X is:",x)
print("The swapped value of Y is:",y)
x=input("Enter the value of X:")
y=input("Enter the value of Y:")
s=y
y=x
x=s
print("The swapped value of X is:",x)
print("The swapped value of Y is:",y)
Comments
Post a Comment