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

How to estimate 96 Times 34 what is the answer
Autumn is paying for college in monthly installments. The college requests that a $1000 down payment be made. Autumn will then continue to pay $500 per month to
The Alien and Sedition Acts were passed by the Federalists to
what is the solution for 4x-9=3.5x-9?
Which statements describe the focus of an earthquake
BRAINLIEST FOR BEST ANSWER AND 20 POINTS!!! What is true when an ion is formed? A.There is an unequal number of electrons and neutrons. B.There is an unequal nu
4 times the sum of 12 and 26
why is it not useful to view science as a set of facts
Three time the sum of a number and 4 is the same as 18 more than the number.what is the number?
Can someone please help me with # 2 #13 thanks show work how it's done, please