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

A 12 foot ladder is placed 4 feet away from a house as shown. What is the value of x, rounded to the nearest degree ?
According to the Food Code, proper food labels should NOT contain:
Which bonds are hydrolyzed during the breakdown of starch during digestion? A.) 1 and 4 B.) 1 and 3 C.) 1 and 2 D.) 3 and 4 E.) 2 and 3
An example of ________ is when federal officials force state officials to implement more stringent water pollution regulations.
jennifer has started a blog and is using the bar chart below to keep track of how many followers she has, how many followers will she has on day n, pattern is a
So far, 37 miles of a new highway have been completed. This is one mile less than two thirds of the entire length. How long will the new highway be when complet
which of the following is equal to 3.3 mm^3
What technological and social changes occurred between the Paleolithic ('Old Stone Age') to the Neolithic (New Stone Age') period?
what is the slope of y = 3.9
when evaluating a source, what questions should you ask about the publisher