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

all the radii of a circle have different lengths true or false
When should governments be changed and who should change them?
What could you do to describe the following data, showing temperatures for the week? (Check all that apply.) Mon - 65° Tues - 67° Wed - 66° Thur - 70° Fri
A group of students are collaborating on an online research project. What is an example of appropriate online behavior?
(HELP ASAP BEING TIMED ! )Which characteristic is not a characteristic of plastic? A. easy to mold B. good conductor of heat C. lightweight and durable
I need the work for 6 and 8 if u will pls help me out ???
what ion is formed when an atom of magnesium (mg) loses two electrons? mg–1 mg–2 mg 1 mg 2
An element that would have properties similar to the properties of phosphorus is 1. sulfur (S). 2. arsenic. 3. nickel.
Find the area of a square piece of cardboard for which the length of the side is 8”sq root sign”
what is an elevator pitch