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

which will hit the ground faster a ball thrown parallel to the ground or a ball drop from the same height as the ball
how can goods be easily transported from western Russia to eastern Russia?
reason tylia says that 5 x 75 = 375. estimate to check kendra`s answer. is she right? explain
multiply (3x^3)(5x^2y)(x^5y^3)
help please!!! can you show me how to do this??
Which of the following traits is not a characteristic of animals? A- Multicellular body structure B- Composed of cells with cell walls C- Heterotrophic food-get
Is the group of words a sentence or a run-on sentence? There is an ostrich farm near our house the owner sells ostrich eggs. A. sentence B. run-on
In rabbits, black fur is dominant over white fur. Show the cross of a heterozygous black male with a homozygous white female.
Which activity consumed most of the Pentagon's budget between 1981 and 1985? Choose one answer. a. civil defense preparation b. the building of nuclear weapo
Giving into an aggressor in order to avoid a larger conflict