daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Oct 19th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print "program to swap two values in variables without \n using 3rd variable"
  2.  
  3.  
  4. a = raw_input("Enter an interger number:")
  5.  
  6. b = raw_input("Enter an interger number:")
  7. print " a = %d \n b = %d " %(a,b)
  8.  
  9. a= a+b
  10.  
  11. b = a-b
  12.  
  13. a = a-b
  14.  
  15. print """ After swap
  16. a = %d \n b = %d """ % (a,b)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top