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

Who would have supported malcolm x booker t washington vs marcus garvey?
PLZ HELP ME SCIENCE PEA PLANTS
Sales promotions constitute the interpersonal arm of the promotional mix. a. True b. False
An atom of the isotope sulfur-31 consists of how many protons, neutrons, and electrons? (p = proton, n = neutron, e = electron)
ЦелеустремленностьЦелеустремленность
Approximately ___ percent of australians live in cities or towns.
The Anasazi are world-renowned for their. A.)arrowheads b.)beads C.)headdresses D.)pottery
round 44.3 to the nearest whole number
What is the value of δg°' (or, to put it another way, the cost) when 2nadp+ and 2h2o are converted to 2nadph plus 2h+ plus o2?
Paul took out a 2-year loan for $1450 at a computer retailer to be paid back with monthly payments at an 18% APR, compounded monthly. If the loan offers no paym