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

What part of the cell function as factories to produce proteins???
how do i change a trapezoid into a rectangle
What is cos P?  Right triangle PQR with a short leg measuring 5, a long leg measuring 12, and the hypotenuse as 13A. 5/12B. 12/13C. 5/13D. 12/5
What was the purpose of the pure food and drug act of 1906?
how many year and months did it take to build blackpool tower england
A rectangle whose perimeter is 80 m has an area of 384 m^2. Find the dimensions of the rectangle.
How do you solve x²-10x+9=0 by completing the square?
How many hawksbill turtles are left in the world?
People who have an extra X chromosome could have gotten it through (A) nondisjunction. (B) transposition. (C) transduction. (D) crossing over. (E) all of the ab
A swimming pool  20 m long and 10 m wide is surrounded by a deck of uniform width. The total area of the swimming pool and the deck is 704 m^2. Find the width o