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

What does the government of the ussr believe it is necessary to state to the government of the us? that a ussr aircraft violated neutral airspace by flying 2,00
Which sentence uses punctuation correctly? (Look carefully!) a) To try to keep busy; Rapunzel read books; painted; played games; and cleaned. b) To try to keep
When an industrialized nation directly or indirectly controls another nation or area in hopes of gaining economic or political advantages A. Apartheid B. Berl
Who holds the power in a unitary system of government?
How do you write 2 4 as a decimal?
Why can't 1 be the base of an exponential equation?
What is national debt
What are bolivia's natural resources? silver and salt copper and gas natural gas, iron and magnesium leather and gas answer is c
50 points no links and i will give brainliest Part E Next, you will make a positive factual statement about your civilization. You should use this statement in
Fill in the blank below with the word that best completes the sentence. Natural selection leads to a process of change in a population over time.