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

8. Why does a virus require a living cell in order to reproduce? O A virus does not contain organelles or cytoplasm. O A virus does not contain a nucleic acid.
M is the midpoint od AN, A has coordinates (-4,-4), and M has coordinates (-7,1). Find the coordinates of N
what is the axis of symmerty of the graph pf function f(X)= x2-10x + 16
When the tide is receding (high tide to low tide) through a narrow area it can pull a large amount of water through a narrow gap, this is called a ...
will mark as Brainlest To the person that has the right answer !! Critical Thinking: Which spice is better salt or pepper? ( Argument must include ) , Valid ar
HELP ME RN PLEASEEEE [WILL GIVE BRAINLY TO CORRECT AND BEST EXPLAINED ANSWER]
A customer wishes to give a gift of securities to her nephew under the Uniform Gifts To Minors Act. When the minor reaches legal age in that state, the: A custo
Helpppppo me with this pleaseeee
Anyone taking the AP Music Theory exam tomorrow? :,) I’m nervous as heck rn
Do countries have a responsibility to help communities who are being persecuted and systemically killed? why/ why not?