To write a python program for swapping of two values
PC Anaconda - Python 3.7
1.Get the two values from the user 2.Assign the value of second variable to a temporary variable 3.Assign the value of the first variable to the second variable. 4.Assign the value in temporary variable to the first variable 5.Print both the values it would be interchanged 6.End the program
#Program to swap two values.
#Developed by:Shalini.k
#RegisterNumber:212222240095
n1=float(input())
n2=float(input())
t=n1
n1=n2
n2=t
print("Swapped values are:",n1,n2)
Thus the swapping of two values are successfully executed