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

What is a perfect cube and how can you check if a given number is a perfect cube? Explain why.
Define the following terms: - medium - technique - proportion
Which of the following is a risk associated with having too little body fat? Breathing problems Coronary heart disease Gallbladder disease Lack of stored e
An oxygen atom with a charge of (+2) has ______________________. a. two more protons than the neutral atom b. two fewer protons than the neutral atom c. two mor
What is the sum of the two vectors (2,-1) and (3,3)?
How many license plates can be made using 3 digits and 3 letters of repeated digits and letters are not allowed?statistics?
A deposit of 4,000 at 6.5% for 270 days
1 mol of CCl4 molecules has ____ moles of Cl atoms.
what emphasizes the reliance on only observable entities in order to come up with lawsA:SOCIOLOGICAL THEOREMB:RATIONALITYC:POSITIVISMD:REALISM
Which number can each term of the equation be multiplied by to eliminate the fractions before solving? 6 –3/4x +1/3 =1/2 x + 5