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 molecule is represented by the molecular model shown below? (See photo) A. Glucose B. Adenosine triphosphate (ATP) C. Adenosine diphosphate (ADP) D. Starch
The relationship between parts of the Earth and the whole Earth is expressed as (1 point) scale place space region pattern
Strawberries have 56 chromosomes, and are octoploidy (i.e., eight copies of each chromosome). how many total chromosome copies are present during prophase of a
Jacob is a third-grader and has a disability that has caused him to be separated from his peers during the school day. recently jacob has been moved to the regu
Please help. I need an explanation with the answer in the pictures is the question.
How do musical instruments vary pitch
Naomi was able to reduce some of the stress associated with her recent job loss by confiding the details of her painful experience to trusted friends. this best
Which of these is an example of European imperialism in Africa? A) Africa is rich in natural resources such as gold, diamonds, and oil. B) Large plantations in
Help me! what is the slope of line h of the equation is y=3
***********BRAINLIEST IF 2 PPL ANSWER*******Thank u!!!