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

Please need some help on this
ASAP who know this please
The immediate event that caused world war 1 ?
Trueview video ads can be especially effective for driving what goals?
A recipe for cake calls for 5.25 deciliters of milk. How many liters of milk are needed for the cake?
A congressional power that is implied by the expressed power to regulate commerce is the power to _____. ban the shipping of certain items in the mail regulate
What is the vertex of the quadratic function f(x) = (x - 8)(x - 2)
What is the force exerted on a charge of 2.5 µC moving perpendicular through a magnetic field of 3.0 × 102 T with a velocity of 5.0 × 103 m/s? 3.8 N 38 N 3.8 ×
It would seem we have reached an impasse in this discussion if no one will agree on the most basic of issues. which phrase provides the best clue to the meaning
What is productivity?Which strategy do companies use for their financial benefit?