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

Which man ruled over Mexico during 1920
What makes Chaucer's detailed descriptions of the animals in "The Nun's Priest's Tale" crucial to the moral of the story? A. Their human names give the reader
Which of the selections below represents a recursive query? a. a client asks a dns server to resolve a domain name. b. a client asks another client to resolve
Explain how you would dilute 450mL of a .250M NaOH solution. You must include all calculations, measurements, and proper lab equipment in your answer.
Is the true or false George Washington was the person that freed the slavery?
Find the area of this trapezoid plz help
joe has a rectangular patio that measures 4 feet by 6 feet. he plants to double the area of the patio by increasing each dimension by the same of feet. what wil
What is the maximum number of electrons that can occupy the 3rd electron shell?
What were the goals of the Young Plan? How did Germans feel about the plan?
PLEASE HELP ME (AGAIN) A rectangle has vertices at these coordinates. (−6, 3), (−6, 5), (2, 3) What are the coordinates of the fourth vertex of th