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

Which pair of compounds are structural isomers of each other?
Which statement is false? A. csc 20' = sec 70' B. cos 87' = sin 3' C. csc 40' = sin 50' D. tan 15' = cot 75'
If a data set has 20 data values, the number of values in the upper quartile is .
how do you do this ? as in setting it up
Selena needs to publish her research about chinese culture. her research includes audio clips from an interview with a chinese citizen, written notes, and photo
2*4X+6=12 solve for x and round to nearest thousandth
Why did conflict start between the native Americans and whites
A client presents to the ed with acute abdominal pain, fever, nausea, and vomiting. during the client's examination, the lower left abdominal quadrant is palpat
Activity 1.1.1-how the universe came to be
The process of paying off the principal on the loan is called a(n) _____.