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

Setting of the story the cruel hunters
Would you mid __________ ? A. to open the door C. opened the door B. open the door D. opening the door E. to opened the door​
Can someone help me with this plssss it would help so much! (IM GIVING LOTS OF POINTS!!!!!!!!)
Currently, Samsung ships 21.9% of the OLED displays in the world. Let s v the event that a randomly selected o l e d display was made by Samsung. What are the o
what is cristiano ronaldo biggest fantasy​
7-5x= -2x-14 solve for x
What is the inverse of the function? f(x) = 1/4x + 10 f¹(x)=-4x-10 f¹(x) = 4x - 40 f¹(x) = 10x +4 f ¹(x)=1/4x-10
A climax community will include which of the following? Question 3 options: A: trees B: animals C: bushes D: grass E: all of the above
For the reaction ?Li+?N2 →?Li3N, what is the maximum amount of Li3N which could be formed from 13.82 g of Li and 0.338 mol of N2? Answer in units of mol.
Your classmate argues that if we know two variables are correlated, we can assume that the effect of X on Y in a bivariate regression will be large in magnitude