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

Express the product of 2.2 mm and 5.00 mm using the correct number of significant digits.
why does the shell of a human egg have microscopic holes in it​
Helpppppp! This is due in 30 min. Explanation please
(b) Rationalise the denominator and simplify fully 10 +3√2 / √2
PLEASE HELP Why were wide connections important to Eskimo families?
The table shows the number of adults, teens, and children under 13 who visited the local petting zoo one week. How many children under 13 visited the petting zo
figure x maps to figure 12 with a scale factor of 2/7​
Karen recorded the numbers of people getting off her tram. The mean number for 10 stops is 6.3. After the tram stops at the 11th stop, the mean is 8.6. How many
Why histography is more dynamic in nature​
Why did the people of Cyrene tell legends and tales about silphium's powers? They wanted people to keep buying a lot of silphium They wanted people to know all