the values of two numbers without using a temporary variable.



The values of two numbers without using a temporary variable.

a=int(input("Enter value of first variable: "))
b=int(input("Enter value of second variable: "))
a=a+b
b=a-b
a=a-b
print("a is:",a," b is:",b)



 

Post a Comment

Post a Comment (0)

Previous Post Next Post