MohdMubasshir
MohdMubasshir MohdMubasshir
  • 24-09-2020
  • Computers and Technology
contestada

15. Write a program in python to read three numbers in three variables and swap first two variables with the sums of
first and second, second and third numbers respectively.​

Respuesta :

tonb
tonb tonb
  • 24-09-2020

Answer:

a = int(input("Enter first number: "))

b = int(input("Enter second number: "))

c = int(input("Enter third number: "))

a,b = a+b,b+c

print(a,b,c)

Explanation:

Assignments like this are easy in python, in the sense that no helper variables are needed!

Answer Link

Otras preguntas

How do I do this problem? I have no idea . Thanks
?? anyone know the answer i dont know how to solve for this
Rewrite the expression without an exponent or radical. 625-1/4
Can someone explain to me how to do this one? I got $283.7 but it’s not listed as one of the answers.
A child is about to have an engineered heart valve put in. What procedure might increase the chances of her body accepting the prosthesis? A. Her old heart valv
What does f(-2)= 4 mean?
Need Help!!!!!!!!!!!!!!Find the outer perimeter of this figure. Round your answer to the nearest hundredth.
Can someone please help me find the domain of this function
Please Hurry). The Science of Biology: Question 1: Explain how sunlight is the primary source of energy for your own life? Question 2: In terms of energy, what
2ways in which propaganda of those times are different from propaganda around us now