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

how do you write 82,340,625 in word form
The core of the computer’s operating system is called the ____.
a possible answer to a scientific question or explanation for a set of observations what is the vocab word
What is 5+2 to the third power multiplied by 2 ?
Convert 16g to mg. 16,000 mg 160 mg 1,600 mg 1.6 mg
a 12-foot piece of string is cut into two pieces so that the longer piece is 3 feet longer than twice the shorter piece. if the shorter piece is x feet long, fi
Either the additional resources provided or the textbook _____ the information required to respond appropriately to this week’s discussion prompt.
Give me an example of an acrostic adaptation poem
what is a word used as a substitute for proper or common words?
what is another way to write (3*1000) (3*10) (3*1/100) (3*1/100)