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 hardships did the south face after the civil war????
which is an example of a physical change* metal rusting*silver tarnishing* water boiling* paper burning
Description of what is an ecosystem
Why was Emmeline Pankhurst significant?
Douglas wants to draw a circle graph showing the favorite colors of his friends. When he polled his friends asking each their favorite color, 25% of his friends
I am so confused about this graphing problem, just need answer doesn't have to show workRectangle ABCD has a length of 9 and a width of 7. Point D is the ordere
Water Cycle: As _________ get too heavy to hold the liquid, the liquid droplets fall back to Earth.
Translucent definition: __________ is allowed to pass through translucent objects.
Aqueous solutions of this ion give a reddish precipitate when excess hydroxide ion is added. (A) Cu^{2+} (B) CO₃^{2−} (C) Fe^{3+} (D) Al^{3+} (E) Pb^{2+}
How many seconds in 2.6 days