pearceso187446
pearceso187446 pearceso187446
  • 02-12-2020
  • Computers and Technology
contestada

write a program which calculates the difference between two integers which are entered by the user. The answer should be a positive integer regardless of the order in which the integers are entered. ​

Respuesta :

Cytokine
Cytokine Cytokine
  • 02-12-2020

In python 3.8:

print(abs(int(input("Enter a number: "))-int(input("Enter a number: "))))

Answer Link

Otras preguntas

a person who studies word origins and meanings would most likely be a
what city is located 60 north 25 east
Solve the system of equations.3x+3y+6z=33x+2y+6z=74x+4y+7z=4
. What are three factors that could contribute to a source not being credible?
a person who studies word origins and meanings would most likely be a
How many eights are there in 6 1/2
At the school carnival, Carmen sold 3 times as many hot dogs as Shawn. The two of them sold 152 hot dogs altogether. How many hot dogs did Carmen sell? 51382111
A 1700 kg 2006 Mustang GT can accelerate from rest to 100 km/h in a time of 5.0 s.  Determine the net amount of work that must be done on the car to cause this
How many eights are there in 6 1/2
In Romeo and Juliet act 2, which character serves as a messenger