Wednesday, July 8, 2015

Swap using 2 variables



a=input("Enter a")
b=input("Enter b")

a=a+b
b=a-b
a=a-b


print a
print b

No comments:

Post a Comment