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

Identify the type of sentence.I caught a cold after I spent a week visiting my grandchildren.simple sentencecompound sentencecomplex sentence
The 10th and the 20th term of an arithmetic sequence are 10 and 40, respectively. Find its 100th term.
What is a distinct factor in math?
By tradition, when does the presidential campaign begin?
Can some one help me ? ???
a mulberry silk worm can spit a single thread the measure up to 3,900 ft in length. write the number in scientific notation?
using exactly four 4s and any operations write an expression to equal the number 3
a mulberry silk worm can spit a single thread the measure up to 3,900 ft in length. write the number in scientific notation?
The value of 3 in 920.003
6x+5y=-15 into intercept form