From d16a5bc6ebe120580baa8a9cac52005ba1baf160 Mon Sep 17 00:00:00 2001 From: Aashray24092000 <118126127+Aashray24092000@users.noreply.github.com> Date: Mon, 3 Jul 2023 21:37:24 +0530 Subject: [PATCH] Update swappingVars.py --- Normal way/swappingVars.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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)