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

describe two big changes the gold rush caused in California
Which city was the capital of the Confederacy? A. Richmond, Virginia B. New Orleans, Louisiana C. Charleston, South Carolina D. Atlanta, Georgia
Sexual relationships can be risky, especially for teens. One risk associated with sexual activity are sexually transmitted infections
The growth of the stock market led people to ___________________. a. feel confident about the economy c. avoid investments b. worry about the economy d. none of
what is 0.57 divided by 30 with an explanation
Journalism that intentionally and transparently adopts a non-objective viewpoint is known as A. tabloid journalism. B. advocacy journalism. C. traditional journ
What was valuable to the people of catal huyuk as gold is to people today
what was a lasting effect of the Korean war
Why did allies engage in propaganda efforts overseas?
. The product of 4.7 and 6.5 equals 30.55. What is the product of 4.7 and 4.7 and