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

Is 2 mi = to 10,560ft
You put $500 in your bank account. With an interest rate of 5%, how long will it take the account to reach $600? Use the formula: I = Prt.
what is the lateral area of the cylinder
WILL TIP IF RIGHT Why is it necessary for meiosis to produce cells with fewer chromosomes? A. Asexual reproduction r
I really need help and no one will help..! solve each system by substitution. explain step by step r + s = -12 4r - 6s = 12
In which month are presidential elecctions held in the u.s.?
I need help is it A B C or D
combine like terms to simplify 2xy-xy-y+7y-xy
How did the colonist get along with the powhatan people nrar jamestown?
Write the equation of a line in slope-intercept form passing through (2, 7) and (-2, 9).