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 of the following is a phase in the cell cycle? Question 2 options: a. G1 phase b. G2 phase c. M phase d. all of the above
I need Help PLEASE, I have a TEST tomorrow and I don't know how to do this!! Please Help Me! :,(
If 3x+7=x-1, then does x = -4?
How many pounds are in 9 kilograms?
i need help with 1-6
Simplify the expression.13[6^2/(5^2-4^2)+9] 181 169 26 585
What is the slope of the line between -7,-2 and 9,4?
Where did the Pilgrims make their first Indian Treaty? A. Telling Mill B. Green School C. Murdock Pond D. Watson’s Hill
How is the H1N1 influenza virus spread?
my question is what is -2 × +5