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

EXPERTs/ACE/GENIUS/TRUSTED HELPERs QUICK!!
Our teacher has waited so patiently for our report, but we have not submitted it yet. Which underlined word functions as a coordinating conjunction in the sente
A(n) ________ can be defined as a substance that prevents the ph of a solution from changing by either releasing or absorbing h+ in a solution
Explain how energy production in the sun differs from energy production in earth's interior.
· union organizer in the late 19th century · Socialist candidate for U.S. President five times · an organizer of the Pullman Strike in 1894 · anti-war activist
Can someone please help me 5 star rating + brainly if solved!
This graph shows linear depreciation of a car over 12 years. If the car's value starts at $24,000, what is the slope of the line of depreciation?
The release of energy found in molecules of glucose is know as --------- respiration
what was th central exchange in feudalism
The scores of the students on a standardized test are normally distributed, with a mean of 500 and a standard deviation of 110. What is the probability that a r