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

How does changing the function from f(x) = 3 sin 2x to g(x) = 3 sin 2x + 5 affect the range of the function?
Read the excerpts from Ovid’s "Pyramus and Thisbe" and Shakespeare’s Romeo and Juliet. "Pyramus and Thisbe" They owed their first encounters to their living
What restrictive measure required voters to pay to vote?
Migration is a _______ adaptation. A. structural B. functional C. natural D. behavioral
In developmental psychology, there is an increasing interest in researching cognitive changes that occur later in life. why
Sean bought a rare stamp for $15.he was told that it would increase in value by $11 each year.what will the stamps value be after 4 years
What do you call a flat map of earths round surface?
the speakers use of pauses in her speech reflect that she is all of the following except
First simplify the statement wherever possible. Then label the statement as true or false.
what is the cube root of 27x^18