Swap Two Numbers With * and / Operator || Python
In this we are going to see a basic program to Swap Two Numbers With * and / Operator in Python Programming Language.


x = int(input("Enter first number: "))
y = int(input("Enter Second number: "))

print("Before Swap")
print(x, y)

x = x * y
y = x / y
x = x / y

print("After Swap")
print(int(x), int(y))

# Coded by Saahil

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post