My Blog is unique to me.
Swap of Two Numbers without third Variable
a = int(raw_input("enter the number 1 : "))
b = int(raw_input("enter the number 2 : "))
print "The Two numbers are a = ", a, " and b = ", b
a, b = b, a
print "The swap of two numbers are a =", a," and b= ", b
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment