Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion swap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This is a program for swapping two numbers.

P = int( input("Please enter value for P: "))
Q = int( input("Please enter value for Q: "))

Expand All @@ -8,4 +10,6 @@
Q = temp_1

print ("The Value of P after swapping: ", P)
print ("The Value of Q after swapping: ", Q)
print ("The Value of Q after swapping: ", Q)

# End of the program