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

Diabetes mellitus is a disease that occurs when which organ does not regulate the amount of glucose in the blood?
Julia is trying to place a duckbilled platypus, lizard, bear, and monkey on a phylogenetic tree. She learns that the duckbilled playpus, bear, and monkey are cl
What does 12g+8k=?????
Who won the six day war
Which statement correctly describes the U.S. Constitution when it became the law of the land in 1789? A. It gave the president a lifetime term of office. B. I
What was the most significant aspect of Henry Ford's assembly line process?
what is a dollar in fraction
After college start you start a job earning 38,000 a year. You get a 5% raise each year. A.) Write the first 3 terms of the sequence. B.) How much will you earn
Which of the following is true about assessing muscular strength and endurance?
Which sentence uses the least effective verb? a. The Lakers marched to victory. b. The Lakers cruised to victory. c. The Lakers went on to victory. d. The Laker