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

Kovach and rosenstiel describe a discipline of _______ that includes the exercise of humility.
Asking questions about current competitors, barriers to entry, and substitute products is part of ______.
Drivers under the age of 18 can talk on the phone while driving only if using headphones, a wireless device, phone holder or mounted device. true/ false
Estimate how many deaths there are annually from tornado and drowning in the united states.
Zara translates figure p to make figure q. If she translates figure q 4 units to right to make figure r where will figure r be located
172 items to ship and 10 items per case
1. Simplify: (y^3)(y^3)
A room is heated by an iron that is left plugged in. take the entire room, including the iron, as the system. is this a heat or work energy interaction?
Find the Value of X. Name the angles.
If points​ C, D, and E are on a line and CD20 and CE​32, what are the possible values of​ DE?