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

Choose a movie that fits the genre and write a 3-4 sentence justification of why that film fits in this genre. The genre is Science Fiction.
Which region of the brain is necessary for consciousness?
Read this example. Michaela is given this writing prompt in class: Write a personal narrative essay that describes a frightening situation that has shaped you
What other information do you need to prove the triangles congruent using SAS
what is perhaps the most grotesque sign of the desensitization that has taken place in oceania with regard to violence , in syme and winstons conversation in t
How do I solve this problem
Match the word to the definition. 1. beneficial 2. dermatological 3. osteoarthritic 4. pathological 5. credential 6. heterodox 7. polytheistic
French Indochina united Vietnam, Cambodia, and Thailand under French rule. true? or false?
Alison wants to add her company name at the bottom of every page in her document. Which option should she use? header subject footer footnote title
Data points may not fall exactly on a straight line because _____.