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

Find the slope of the line graphed below.
what is the circumstance of the circle 5cm​
__ were very important to ancient civilizations because they recorded the decisions of the king
Find four consecutive integers whose sum is 234.
AACB = ADCE <A=50°, <C=45°, and <D=10x x=[?]​
Facts about Irish and English travellers(cspe in Ireland)
Which region of Mexico has the most people? (SS6G3) HELP PLEASE Central Plateau Tropical Beaches Northern Deserts Sierra Madre Mountains
true or false, Military spending changed a great deal in the 1970s.
Which plant is considered an invasive species in Shenandoah National Park in Virginia? es ) A) Blackberries and raspberries are found blooming along open areas
Read the excerpts from the poem. What do these excerpts suggest about the speaker’s feelings towards the corpse? “…how I cursed that load.” “... how I loathed