diff --git a/swap.py b/swap.py new file mode 100644 index 0000000..6cb07a1 --- /dev/null +++ b/swap.py @@ -0,0 +1,7 @@ +a=input('Enter first no') +b=input('Enter second no') +print('before swaping a=',a,'b=',b) +a=a+b +b=a-b +a=a-b +print('after swaping a=',a,'b=',b)