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

what is 0.362 in expanded form
commutative property of 35x70=mx35
Who took the lead in making sure the bill of rights was eventually included in the constitution
What times what equals 81
You subscribe to m different magazines. Your friend subscribes to 2 fewer than you
what the answer to 6q-1=-q+20
Which word or words in the sentence does the participle modify? I am watching the marching band in the parade.
Observe preparation of dishes at your home. Identify two changes that can be reversed.
A planet in our solar system is located far from the sun describe the size and composition of the planet
What problem did socialist thinkers seek to solve?