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 room has a length of 4 1/3 yards and with a 15 feet. The room is covered with carpet that cost $21 per square yard. How much money did the carpet cost?
D(1)=8 D(n)=d(n-1)•(-5) Find the 3rd term
3/6x4/9 plz help meeeeee
Need Help! Offering 10 points!
What happens to Victor's mother as a result of Elizabeth's scarlet fever? What does Caroline direct Elizabeth and Victor to do for the sake of “future happiness
what do bacteria have in common with the cells of other living organisms A-they have cell membranes B-they are multi cellular C- they have the same shape D-
what is 3-2x=5x+4-4x
A certain radioactive isotope has a half-life of 5 days. If one is to make a table showing the half-life decay of a sample of this isotope from from 32 grams to
. An object accelerates from rest at a constant rate covering a distance of 9 meters in 3 seconds. What is its rate of acceleration? Put your answer in this fo
The isotope carbon-14 has 6 protons and an atomic mass of 14. Carbon-14 has:14 neutrons8 neutrons20 neutrons6 neutrons​