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

when e = 4, f = 2, and g = 8. if e varies jointly with f and g, what is the constant of variation? mc003-1.jpg mc003-2.jpg 4 64
How to work out the maximum speed with this information?
which best describes the fossil record? the fossil record cannot provide evidence of evolution. the fossil record provides evidence of a common ancestor to many
what is the type of conflict in alice in wonderland
round 0.97 to the nearest tenth
what is another name for this polynomial based on the number of terms it contains: g(x)=-27x^3y^2 is it a trinomial?
which complex number has a distance of √17 from the origin on the complex plane?a. 2 15ib. 17 ic. 20 - 3id. 4 - i
what is 2 and 3/4 divided by 1/4
if log(m/n) = 4 and log(p/n) = 5 what is the relationship between m and p? p=100m p=10m p=0.1m m=10p
Brian is given an unknown element that is bright when sunlight hits it. He has a hammer and an electrical source. If he attached the electrical source, what mig