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 sociological perspective views the economic structure as a central factor in the exploitation of minority groups?
An investment is worth $3518 in 1995. By 2000 it has grown to $5553. Let y be the value of the investment in the year x, where x = 0 represents 1995. Write a li
Is the following statement true or false? Media reports can be evaluated for theme and effectiveness.
If the legs of a right triangle are 3 feet and 4 feet, the length of the hypotenuse is _______ feet. A. 9 B. 16 C. 5 D. 25
what I s rosa upset about in the book theif
Which of these BEST describes a theme of this poem? A) loss of innocence B) nature's fury and power Eliminate C) pride in battle and death D) romantic
Y=x+12 4x+2y=27 Solve each system of equation algebraically
Why do we try to imagine what the end of the world will be like? 1 Paragraph
what was the ship that the german submarine sunk
Proteins that resemble spools on which dna molecules are wound are called