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

Legumes have a materialistic relationship with bacteria that live in what?
What is it called to find an approximate answer for a number??
plzzzz someone help. can anyone answer this questions. please reply if you know. this is the question. To decrease an amount by 21%, multiply by
What is one-third of 2,700?
Which organelle does the krebs cycle take place?
Can anyone help me with this math promblem???? Thanks in advance.....If h = 13 units and r = 5 units, then what is the approximate volume of the cone shown abov
The british empire gained a footing in india through where?
An entrepreneur keeps backup funds in a savings account so that if their business experiences a loss, they will be able to recuperate. What type of risk managem
People under the influence of alcohol are more likely to be injured due to poor coordination and decision making skills. A. True B. False
Which is a possible effect of a dna mutation? a.protein defects that affect chemical reactions b.structural deformities c.both a and b d.neither a or b