Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Program to swap 2 numbers
- num1 = int(input("Enter your first number: "))
- num2 = int(input("Enter your second number: "))
- num1,num2 = num2,num1
- print("\n When Swapped")
- print("The first number is now: ",num1)
- print("The second number is now: ",num2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement