Skip to content
Snippets Groups Projects
Commit f11fc964 authored by Niphade's avatar Niphade
Browse files

add c var to swap

parent 73d88b46
No related branches found
No related tags found
Loading
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Input two numbers # Input two numbers
a = int(input("Enter first number: ")) a = int(input("Enter first number: "))
b = int(input("Enter second number: ")) b = int(input("Enter second number: "))
c = None
print(f"Before swapping: a = {a}, b = {b}") print(f"Before swapping: a = {a}, b = {b}")
# Swapping using a temporary variable # Swapping using a temporary variable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment