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

what is a good character name for a short story ​
Position vs Time 20 15 10 B 5 C position (m) 0 D -5 -10 -15 E 20 0 1 2 3 8 9 10 11 12 4 5 6 7 time (sec) 401320
what is the collective noun of bees​
Raccoons will eat almost anything. They are most accurately called O carnivores O producers O herbivores O omnivores​
3. Machine A packs 4, cartons in 5 hour. Machine B packs 4 cartons in a hour. Which machine packs faster? How many cartons per hour can the faster machine pack?
10pts each + Brainliest! If someone is generally not a nice person, they should not be asked to join the group. T/F
In formal writing is done for who?
Kevin wants to cover a rectangular floor that is 15 feet by 30 feet with carpeting. Assuming no waste, how many square yards of carpeting will Kevin need to com
Why is it important that we can translate expressions into text ( will give brainliest )
How many times did the Senate reject the Treaty