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

Based on the map and excerpt- how would you describe the importance of Texas in the civil war? PLEASE
How did the Han dynasty end
PLS HELP THIS IS URGENT LIKE AN ASPA QUESTION THAT NEEDS AND ANSWER PLS HELP Describe the percentages of electromagnetic energy that comes from the sun?
y’all help 3 giving brainlest if you help and give steps (send picture of your work if you can)
Which of the following are equivalent to 80 1/2
A fruit fly mutant, clop eye (one eye in
What type of music is Dad Feels? Okay, so I have not been in a great mood, so I listened to a playlist called "Dad Feels" It reminds me of something like Lofi a
The random numbers below represent 10 trials of a simulation. 2632, 1365, 9367, 2056, 0026, 6564, 1434, 8045, 4781, 8681 The numbers 0–7 represent students who
Hal earns n dollars per hour. Next month he will receive a 296 raise in pay per hour. The expression n +0.02n is one way to represent Hal's pay per hour after t
A savings account appreciates 1.5% each month. If the initial balance is $50,000, what would the total balance be after 36 months?