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

hellpppp urgenttt!!!!!
Which two peripherals are not required to browse the internet? O A. CPU B. Monitor O C. Headphones D. DVD drive
13. Velocity is the rate of change of ____________ of an object. 14. Acceleration is the rate of change of ____________ of an object. 15. What is the difference
What is one major international organization play in the global economy
When Heather was doing her experiment on electrically charged objects, why did she complete more than one trial? (A) To eliminate the chance of errors (B) To ga
what happens if 2022 altima’s rear door alert is activated and the driver does not disable the alert after arriving at their destination?
35. The pyramids were built as (2 points) O temples tombs O palaces O community property The pyramids were built as tombs if I’m not mistaken I’m taking the art
if the measure of angle 1 is 100 degrees and the measure of angle 3 is 60 degrees, what is the measure of angle 2? you must show your work
Evaluate when x = 3, y = -3, and z = -2 xy + 2z Please Help!
They both have the same set of answers ignore the top left question the choices are plus and minus symbols