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

Solve each quadratic equation. Show your work. 14. (2x – 1)(x + 7) = 0
Which state was an independent republic before joining the union? A)florida B)texas C)oregon D)ohio
Which statement accurately describes the U.S. Constitution? A. It became law in 1776 at the outbreak of the American Revolution. B. It was based on the ideals o
Who was the first man on the sun?
how do you express the area of the square as a monomial
When using an editing checklist to review your paper, you should
Why is Greenland so sparsely populated
Which of the following best describes the significance of The Divine Comedy? A. The author wrote in Italian and presented very realistic characters. B. The char
Which of the following statements is true? A. Allowing a foreign leader medical treatment in the United States led to a hostage crisis in Iran. B. Denying a for
What did Spanish missions promote to American Indians?