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

Draw the box and whisker plot for the data.
Choose the best topic sentence for the passage. It used to be unusual to live to the age of 90. Better diet and medicine have made 90 a more common age. Today,
Sometimes genes, for no known reason(s), change their form in a process called spontaneous malformation spontaneous acceleration spontaneous combustion spontane
Which is a set of collinear points and which statement describes the drawing. Can someone help?
Acetanilide has a solubility of 1.00 g/185 ml in 25 oc water and 1.00 g/20 ml in 100 oc water. what is the minimum volume of water needed to recrystallize 500 m
REWARDING BRAINLIEST FOR BEST ANSWER!!
How many pizzas were shared
The political business cycle refers to the phenomenon that just before elections, politicians enact _________ policies. after the elections, the bad effects of
how do the relationships between the Earth and the Sun affect climate
Which answer best summarizes the events from the poem contained in the following lines? (15 points) "This plainly he saw then Who with mirth of mood malice no