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

The total interest on a discounted loan is $40. If Bob received $480 into his bank account on drawdown, what is P0, the loan principal? Give your answer in doll
What do you think about them? bills of rights
Find the value of x in each case:
The Texas department of public safety issues drivers licenses and identification cards that have specific security features. A valid drivers license issued afte
The football team has a total of 800 jerseys. There are 6​ medium-sized jerseys. What percent of the jerseys are​ medium-sized jerseys?
Mrs. Wei was designing a 6 question True or False quiz. She didnot want there to be more than 2 answers the same in a row.How many ways could the answer key be
Lisa swam 6 less than four times as many laps as Amanda. Brynne swam eight more than twice as many laps as Amanda. If Lisa and Brynne swam the same amount of la
What is the supporting idea of the third section: "How Important Are the Elements of a Fair Trial?" CENTRAL IDEA: In the United States , the right to a
If f(x)=-2x+8 determine the value of y for each x value 7,8,9
What is ratio and a example?​