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 of the following statements is CORRECT?a. Because of their simplified organization, it is easier for proprietors and partnerships to raise large amounts o
Abby works in the sales department. This month the company is offering a 3-week paid vacation to every employee who sells 230% of the amount sold last month. If
legal principles applicable to execution of a will in kenya
An angle of 200° is a/an angle.
The equation for momentum is p = mv, where p is momentum, m is mass, and v is velocity. The units for momentum are kg•m/s. a. What is the momentum of an object
NEED MATH HELP NOW. Please solve for the x-intercept. Please show work.
Suppose that JB Cos. has a capital structure of 75 percent equity, 25 percent debt, and that its before-tax cost of debt is 14 percent while its cost of equity
In what form are Buddhist temples constructed in India?
The Institutional Review Board 1) Reviews only studies in animals 2) Reviews clinical studies (in humans) 3) Is constituted by the drug company to assure the sa
Analyze the diagram below and complete the instructions that follow.Given that the two rectangular prisms are similar, find the scale factor and the ratio of th