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

The grading system based on the amount and distribution of finish on an animal is called
Convert 0.06m squared to cm squared
4/7 (21/8x + 1/2) = -2 (1/7 - 5/28) write your solution in decimal form.
As a result of the French fur trade in the 1600s, 1.French settlers came into conflict with English settlers.2.American Indians began making fewer things themse
PLEASE HELP. I ABSOLUTELY NEED THIS AS SOON AS POSSIBLE . Explain in what ways Oedipus stays the same over the course of the play and why this is significant.
Not knowing what to do for this problem and need help
Chad drove 28 miles using one gallon of gas and all together he drove 308 miles using 11 gallons of gas. Chads car continues to get the same number of miles pe
Under the rule of Suleiman the Magnificent, the Ottoman Empire expanded into Europe as far north as A) Athens. B) Paris. C) Rome. D) Vienna.
In what ways are French norms/practices regarding conversation and communication
does anyone know the answer to this?