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 are the physical benefits to be gained from participating in track as a sport?
a blood vessel with a thick layer of smooth muscle and elastic fibers is
What can you do if your nose has been stuffed up for 5 months?
How are evaporation and transpiration similar? a They are both processes in which water is changed into water vapor. b Both processes occur immediately before p
Why does honey come in so many flavors? Bees make honey from many kinds of flowers. Commercial honey makers add flavors during processing. Each kind of honeybee
In "My Father Is a Simple Man," what do the lines "and when the bitter-hard reality / comes at me like a punishing / evil stranger" contain? A. a rhyming couple
elevilor din cercul de ceramica li s-au distribuit 4 kg de lut,cite 200g fiecaruia. cite fete si citi baieti sint,daca fete sint cu 2 mai putine decit baieti?
Which statements describing how Renaissance ideas spread beyond Italy are true? Choose all answers that are correct. A. Writers such as Machiavelli and Castigli
Rome contributed to the development of world languages.
What can homeless people see,hear,feel,smell,taste