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

In the 75th Congress (1937−1939) there were in the Senate 75 Democrats, 17 Republicans, and 4 members of other parties. Suppose that a bill passed the Senate wi
PLEASE HELP ME!!While the Thames is important to many businesses, it also affects the daily lives of the city’s seven million citizens. Over the years, the rive
AM radio signals broadcast electromagnetic radiation at frequencies between 640 kHz and 1.20 MHz. (a) What is the shortest wavelength of an AM radio signal? in
Evaluate [(40 + 5) − 32] ÷ 9 ⋅ 2 9.3 8.6 8 2
Who was Roosevelt’s desired successor to the presidency during the 1908 election
Find the derivative of the function using the definition of derivative. g(t) = 9 t g'(t) = State the domain of the function. (Enter your answer using interval n
what is the radius of an ellipse
Jones has 10 browns and 5 yellow How many does he have combined
What is 243,875 rounded to the nearest tenth, hundredth, ten and hundred?
what type of cell has ribosomes