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

Any ideas for a hook for an essay about standing up for others?
On January 1, 2020, Crane Company sold to Blossom Company $740000 of its 8% bonds for $655119 to yield 11%. Interest is payable semiannually on January 1 and Ju
Is writing about your family vacation informative writing? true or false
PLEASE HELP!!!!!!!!!!!!!!!!!
helppppppp me plzzzzzzzzzz WILL MATK BRAILIST
Briefly describe the point of view about imperialism expressed by the text excerpt.Briefly describe the point of view about imperialism expressed in the cartoon
What does Tecumseh suggest in this letter
Cei 546 de elevi a unei scoli au plantat în parcul orașului petunii, panselute și zambile . Știind că fiecare copil a plantat câte 3 flori și că petunii și pans
Answer the following question:
For what reasons do readers use text-to-speech tools? Check all that apply. to read difficult material to highlight specific details to support new language lea