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

IF CHILDREN BEHAVE BADLY, SHOULD THEIR PARENTS PUNISH THEM .Write a passage about 200-250 words to justify your answer.
what is the distance time how can we find the speed of an object from its distance time graph​
find the missing side length in the image below​
cubed root of 8 to the power of x​
Which statement comparing the age of puberty in boys and girls is TRUE? Boys experience puberty at around 9-14 years of age. Girls experience puberty earlier th
Comparing Ratios Which ratios are less than 8 to 10? Check all that apply. 16 20 3:5 50 100 13.15
4. Look at the painting below. Name the painting and the artist and describe its important features. (8 points)
one positive integer is 3 less than twice another. th sum of their squares is 306. find the integers​
there is 2 test tube containing sodium chloride and sodium sulphate solution respectively suggest a method to know which is Sodium sulphur​
7 is subtracted from the product of 6 ​