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 is a simplified expression for the perimeter of the polygon?
What is the separation of powers under the U.S. Constitution?
how did the eastern and western churches view religious authority differently​
The perimeter of a triangle is 137 cm. If three sides of the triangle are x + 7cm, 2x - 5 and 3x - 3 cm, what is the length of each side ?
Hey I just need some help on the two bottom questions. This is for ap chem and it’s about equilibrium constant
Round each factor to the nearest ten and estimate the product of 12(22)
Plz help the ones with question marks
Solve (x - 2 < 5) ∩ (x + 7 > 6).
What child labor was like during the progressive era? What laws exist today to protect child workers? Evidence from other countries that shows how child labor h
Who was the first president to speak at a national ffa convention