Write a program to read three numbers in three variables and swap the first two
variables with the sum of first and second and third numbers respectively.
Answers
Answered by
2
Answer:
a=int(input(“enter the first value “))
b=int(input(“enter the second value”))
c=int(input(“enter the third value”))
a=a+b
b=a-b
a=a-b
print(a,b)
b=c+b
c=b-c
b=b-c
print(b,c)
please follow me...
Similar questions