write a python program read three numbers in three variables and swap first two variables with the sums of first and second , second and third respectively
Answers
Answer:
hey
Explanation:
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)
Answer
a=int(input(“enter the first value “))
a=int(input(“enter the first value “))b=int(input(“enter the second value”))
a=int(input(“enter the first value “))b=int(input(“enter the second value”))c=int(input(“enter the third value”))
a=int(input(“enter the first value “))b=int(input(“enter the second value”))c=int(input(“enter the third value”))a=a+b
a=int(input(“enter the first value “))b=int(input(“enter the second value”))c=int(input(“enter the third value”))a=a+bb=a-b
a=int(input(“enter the first value “))b=int(input(“enter the second value”))c=int(input(“enter the third value”))a=a+bb=a-ba=a-b
a=int(input(“enter the first value “))b=int(input(“enter the second value”))c=int(input(“enter the third value”))a=a+bb=a-ba=a-bprint(a,b)
a=int(input(“enter the first value “))b=int(input(“enter the second value”))c=int(input(“enter the third value”))a=a+bb=a-ba=a-bprint(a,b)b=c+b
a=int(input(“enter the first value “))b=int(input(“enter the second value”))c=int(input(“enter the third value”))a=a+bb=a-ba=a-bprint(a,b)b=c+bc=b-c
a=int(input(“enter the first value “))b=int(input(“enter the second value”))c=int(input(“enter the third value”))a=a+bb=a-ba=a-bprint(a,b)b=c+bc=b-cb=b-c
a=int(input(“enter the first value “))b=int(input(“enter the second value”))c=int(input(“enter the third value”))a=a+bb=a-ba=a-bprint(a,b)b=c+bc=b-cb=b-cprint(b,c)