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

If x can be any number, how many solutions are there for the equation? y = 4x – 1 A. There are two solutions. B. There is no solution. C. There are many sol
How do I solve this. Log 5x = log (2x+9)
Below is a graph that shows the eating habits of a goldfish in an aquarium over a two day period. At which of the following times during the next day (Wednesday
Experimental Probability I can not figure out the answer to this question! it is supposed to be about Experimental Probability, but i don't understand it! pleas
What happens when ATP binds to myosin heads during muscle contraction? A. Calcium ions are released from the sarcoplasmic reticulum. B. Calcium ions are taken u
what was the significance of Columbus's voyages
why autotroph are important
Which explains how winds cause surface currents? A. Friction between the blowing air and the water drags the water along and creates surface currents. B. High-p
What did Galileo think the bulges on either side of Saturn were cause by?
In the sentence below, identify the adverb clause, subordinating conjunction, and the word(s) modified. The green and greasy alligators would not wrestle Steve