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 MeEeEEee PLEASEEEEE
The distance between Maria’s house and her school is 650 meters. The distance between her bus stop and school is 400 meters. Maria walks to the bus stop every m
yandere ouji ga shachiku onna no watashi o hanasanai
What is an example of an event or occasion where you would set the table?
66% AND 2/3 Which is greater?
how many milligrams of melatonin can you give a dog?
Which statements describe Spanish explorers’ interactions with American Indians in the 1500s? Check all that apply. American Indians acted as guides for explore
I need help with a WRITING topic for a persuasive letter. It has no due date and I had started it but the teacher wouldn't allow that topic. Please help and if
find the solution of equarions: x + 3y = 7 and 2x + 4y =8
1. Write the equation of the line parallel to y = 7x – 5 and going through the point (4,31).