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

Help pls!! Use 3.14 for pi.
The act requirement of a criminal violation, called the ________, requires the government to prove that a defendant’s actions objectively satisfied the elements
Define the linear programming problems. State the key terms in L.P.P.​
Triangle X Y Z is shown. Angle X Z Y is a right angle. The length of Z X is b, the length of Z Y is a, and the length of hypotenuse X Y is c. Given right triang
Which option is an example of deductive reasoning? Spiders are scary
choose the correct pronoun. a .let.............go for a walk. (we /us)​
Zoe is shopping for a new car and has to make some decisions. The model she’s chosen comes in two versions, hybrid and electric. For the exterior, she can choos
There is some evidence that mineral loss may be greater in athletes than in the sedentary population. a. true b. false
A newspaper started an online version of its paper 14 years ago. In a recent presentation to stockholders, the lead marketing executive states that the revenues
Will has twice as many stamps in his collection as Carlton and Ashley do in their collections combined. If Ashley has 30 stamps and she has a third as many as C