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

iven right triangle XYZ, what is the value of tan(60°)?
1+1=?..............................................................
Complete this paragraph by selecting the most relevant and trustworthy sources. Despite what you may think, it’s not impossible to avoid getting sick during col
Witch of these statements best describes Absolute rulers
help!! Which United States' president, in addition to Eisenhower, believed the federal government should play a smaller role in the economy? A) Ford B) Carter
When a pregnant women injests toxins such as alchol and nicotine the?
Describe how finches of the Galapagos Islands adapted over time.
Can someone please help me with this? 1. By what factor does the circumference change if the radius is tripled? Explain.
Jacob earned $45.75 after mowing 3 lawns. how much did he earn per lawn?
What is the distance between A and C