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

The lesson on selecting a topic for a speech teaches that the first step in choosing a topic involves thinking and
A good example of suggesting an alternative activity effectively if a person is asking you to do something that makes you uncomfortable would be: “I don’t want
Distributive property to find the sum of 12 and 36. Please help!!!
What value of n makes the following equation true? n⋅5=−5
Who founded the royal academy of music?
describe what the point 0,0 on the graph represents in terms of the situation being described by the graph
isaac Newton was a mathematician and scientist. Newton's discovery of the laws of motion and universal gravitation help to advance the scientific revolution of
Kirsten is making lanyards for a convention. She needs to make 1,000 lanyards and knows that 1 lanyards uses 1.75 feet of cord. How much cord will Kirsten need?
The sum of three consecutive integers is 54 what is the greatest of the three integers
ay/b-by/a=a^2-b^2. find value of y