Do Look Learn and Code.
#programme to swap two numbers a=raw_input("Enter a= :") b=raw_input("Enter b= :") #input from user by raw_input function print "Entered values are","a = ",a,"b = ",b c=a a=b b=c print "Swapped values are","a = ",a,"b = ",b
No comments:
Post a Comment