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

Select the equation that contains the point (3, 6), and in which the slope equals 1 y + 6 = x + 6 y – 6 = x – 3 y + 6 = 3x y – 6 = –3x
Where are the most reactive nonmetal elements found on the periodic table? at the top of group 17 at the bottom of group 17 at the top of group 18 at the bottom
Employees earn $5,000 per day, work five days per week, monday through friday, and get paid every friday. if the previous payday was january 26 and the accounti
The role of active cytotoxic t cells is to attack _____.
calculate the average mass of these three samples: 104.2g, 3.21g, 29.0g.
If no file specification of a web page is specified in the web address, a default web page is displayed a. True b. False
Explain what are two ways that an amendment to the constitution may n proposed
The bank panic of 1907 led to the passage of​ the:
Completa la frase según la lectura y no te olvides de poner el artículo para la palabra. Complete the sentence according to the reading and be sure to include t
which of the following schools would adhere to an open admission guideline? A: Connecticut College B: Weber State College C: Mount Holyoke Community College D: