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

Why does 2 pi divided by 1/3 equal 6 pi?
Why did Allies plan to land in Normandy and not somewhere else?
A hiking club has 9 members. How many ways can they choose a president, vice president, secretary, and treasurer from among the members?
What are some 5th grade science words that start with y
Nick bought a video game for $55, which was 20% off the original price. what was the original price?
Nick bought a video game for $55, which was 20% off the original price. what was the original price?
If (3+y)/y=7, then y= Please help :)
A moving company is trying to store boxes in a storage room with a length of 5 m, width of 3 m and height of 2 m. How many boxes can fit in this space if each i
Scientists divide rocks into groups based on_________
how do I solve (3+i)(3-i)