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

1. A basketball is thrown from the roof of a 50-foot building. It reaches a maximum height of 86 feet 1.5 seconds after the ball is thrown. • Write a function r
Write a brief explanation describing the current state of healthcare in the United States (Affordable Care Act, Medicare, Medicaid, and so on). Then, evaluate h
Does the triangle area only work on right triangles.
Blake scored 182 points in 14 games. Find the unit rate, in points per game.
After the Louisiana Purchase, how far west did the United States stretch? Appalachian Mountains Great Lakes Rocky Mountains Pacific Ocean
TRUE OR FALSE?? 3 Parallel lines A and B ore cut by transversal X as shown below. A.The value of x can be found using 12x – 18 = 8x + 10. B. Each of the marke
If z = 9x2 y2 and (x, y) changes from (1, 2) to (0. 95, 2. 1), compare the values of δz and dz. (round your answers to four decimal places. ).
Arguably, it's important to keep up with traffic laws and driving technique OA) to promote maximum safety on the road. OB) to act on what other drivers expect.
4t+7=15 4t= Subtract 7 from both sides t= Divide both sides by 4
help me with this I'm trying to win a bet8 ÷ 2 (2 +2)​