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. Which of the following represents a radius of the circle?
Part A. Jose painted a square shaped mural. The length of each side of the canvas is 1 1/3 yards. What is the area of the mural is square yards? Part B. Lori p
Solve the proportion. 3.8/8=y5
Can someone explain to me why sin(2ϴ/3)= -1 has no solution. The question is "Exercises 25-38 involve equations with multiple angles. Solve each equation on t
y equals 5x to the second power
The total snowfall in Smithville after a three day snow storm was 39.1 inches.The accumulated snow after the second day of the storm was 24.6 inches, two-thirds
name 10 gods/godesses and their power/ reason for being
how do you say mom in Spanish?
Read the passage from a position statement by the National Council on Disability. The Individuals with Disabilities Education Act does not specify whether par
What is the average size of a highschool diploma?