Skip to main content
my python programs
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
December 14, 2020
arithmetical swap
x=int(input("Enter x value:"))
y=int(input("Enter y value:"))
x+=y
y=x-y
x=x-y
print("x=",x,"y=",y)