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

Is it possible for the incenter of a triangle to be outside the triangle?
Read the sentences. snowshoeing is a popular activity in grand lake. snowmobiling is also a popular activity in grand lake. what is the best technique for combi
State why the triangles are similar and complete the similarity statement
What did they do for fun in the middle ages?
What is the slope of the line represented by the equation 5x – 4y = 24?
What is the minimum product of two numbers whose difference is 60​? what are the​ numbers?
The carbon rod in a standard d-cell serves as
what happens to the value of the expression 80/h as h increases
Hannah is having a sale. in her ads, she wants to include the amount of time left in the sale. what's the best way to do this
what does "those who hurry fast are the first to fall" mean?