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

I'm stuck on this, please help!
Identify the domain and range of the following graph.
How can an examination of text through multiple perspectives affect understanding
What is the main responsibility of the majority leader in the house of repesentatives
I really need help with this question
The new tax laws were not fair to americans because
How many different chemicals are in tobacco?404004,00040,000​
Which is an outcome of gene regulation?
Does performance of contractual obligations terminate the contract
Read the sentence from exploring the titanic. I made plans and tried without much luck to raise the money I would need to mount the kind of expedition that I co