Write a programm in python to read 3 numbers in 3 variables and swap the first two numbers with sum of 1st and 2nd &2nd and 3rd | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

Write a programm in python to read 3 numbers in 3 variables and swap the first two numbers with sum of 1st and 2nd &2nd and 3rd

15th Jul 2018, 8:30 AM
Sushmita
3 Respostas
+ 2
Sushmita And this is a your homework/assignement. You have to do some work then you can ask for help on YOUR code
15th Jul 2018, 9:06 AM
KrOW
KrOW - avatar
+ 2
I agree with krow I believe it is crucial as a developer to find solutions especially to logical problems on your own. It will help you in the long run if you enhance that ability.
16th Jul 2018, 3:50 AM
Sebastian Fricke
Sebastian Fricke - avatar
+ 1
I'm not good with Python, but this may work: a,b,c=int(input()),int(input()),int(input()) print(a,b,c) a,b=(a+b),(b+c) print(a,b,c) Hth, cmiiw
15th Jul 2018, 9:01 AM
Ipang