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

What is the solution to the equation x + 8.5 = 64.5? 7.6 48 56 73
A room is 12 ft long and 10.5 ft wide a scale model of the room is 3.5 feet wide what is the area of the scale model
_______reduce the physical and psychological symptoms of anxiety by reducing brain activity.
You are expecting a call from a friend anytime between 3:00 P.M. and 5:00 P.M. At 3:20 P.M, you discover that someone accidentally left the phone off the hook.
If 5x+2 is an even integer, find the next odd integer.
Parasitism is when one organism benefits from another without it being affected both organisms benefit from a relationship one organism feeds off another mak
Gustavo _____ México pero vive en EE.UU
True or false: the difference between the lower limit of a confidence interval and the point estimate used in constructing the confidence interval is called the
Can segments with lengths of 36, 48, and 60 form a triangle? If so, would the triangle be acute, right, or obtuse?
Consider the incomplete reaction below. NaOH + X mc005-1.jpg NaCH3COO + H2O What is X in this reaction? NH4OH H3PO4 H2CO3 CH3COOH