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

find the product ad quotient of each pair numbers 24.6 and 1.2
T(8,15) is the midpoint of CD. The coordinates of d are (8,20) what are the coordinates of c
each year Lizzie's school purchases students agenda books, which are sold in the school store. This, the school purchased 350 books at a cost of $1,137.50 if th
What is the greatest common factor of 42,84,and 105 and how do you find it
write 2,000,000,000 + 70,000,000 + 100,000 + 3,000 + 800 + 10 in standard form.
find the real solutions of e^3t=100
In an examination there are four multiple choice questions with 3 options each, of which one option is the correct answer. In how many ways can a student answer
What are the “soils” of democracy?
Explain why contact trace evidence is so important in solving crimes.
The kinetic energy of a substance is the _________ kinetic energy of its particles