diff --git a/Normal way/swappingVars.py b/Normal way/swappingVars.py index 975a3df..7b6f2e9 100644 --- a/Normal way/swappingVars.py +++ b/Normal way/swappingVars.py @@ -9,3 +9,14 @@ # Result # The value of x is 10 and y is 5 + +#without using third variable + +x=5 +y=10 + +x=x+y +y=x-y +x=x-y + +print(x,y)