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 success of the Minoans was based on what?
unlike photosynthesis cellular respiration occurs in
Describe the economy of the Hausa city-states
A recipe calls for 3 3/4 cups of milk. If the recipe is doubled, how much milk is needed?
What was the purpose of passing the neutrality act of 1935
An internet search engine looks for a keyword in 9 databases, searching them in a random order. Only 5 of these databases contain the given keyword.
A triangle with no equal sides is called a(n) _____ triangle. isosceles equilateral obtuse scalene
ed spent 8.5% of his savings on lunch, which costs $5.25. how much did he have in savings before lunch?
Natalie is shopping at a used book and music store. A sign advertise 4 cds for $12. What is the unit rate for the cost of 1 cd?
What is 41/44 times 12/29