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

I need some help again. its from the story Kickin’ Korean Barbeque Which sentence from the text best demonstrates how Sammy's actions develop the theme of the i
how did the territorial period affect the political identity of louisiana
Is 7/15 reapeating or terminating
Which statements are true about different software? You can use a word processor to write, edit, print, and perform a variety of modifications on a document. Wo
Plzz, Helpppp!!!!!!!
Below you see the Electorate Profile for the state of Pennsylvania. What do you feel are three issues that can be considered more important to Pennsylvanians ba
what was the Justinian & why was it important?
An object travels in a straight line for 1200 m in 20 seconds. What is the average velocity? *
Which of the following does not characterize Baroque society? strict rules careful dress codes preoccupation with humanism established manners
Lynn has 3 3/4 cups of strawberries. She wants to put them into 3/4 cup bags. How many 3/4 cup bags can Lynn make?