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

B, D and C are the correct answers
Yellowstone National Park has an average of about 4500 bison living in it. The park covers 3472 square miles. What is the population density of bison living in
Which of the following is a chemical property of an antacid tablet? Select one: a. Breaks easily b. Ability to neutralize acid c. Tart taste d. White color
What are concurrent powers/9316335/7ccbd75d?utm_source=registration
Which substances have /_\Hf = 0 kJ/mol by definition? Select all that apply. O2(g) N(g) H2O(l) Br2(l) Fe(s) He(g) S6(s)
Which of the following must be true? The diagram is not to scale. A) BC < FH B) AC = FH C) AB < BC D) AC < FH
What is the meaning of life.
In the presidential campaign of 1896, how did William Jennings Bryan represent the Populist Party's goal of building a broad-based movement?
What is the median of this list of numbers? 5, 10, 13, 7, 5
What color changes did you observe when you added Benedict's solution to the 5% glucose solution and heated it?