Wednesday, July 8, 2015

Swap using 3 variables



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

No comments:

Post a Comment