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

write each power as a product of factors 2^4 4^2 9^2 8^5 5^3 7^3
All the isotopes of a given atom have(1) the same mass number and the same atomic number(2) the same mass number but different atomic numbers(3) different mass
A neutral atom contains 12 neutrons and 11 electrons. The number of protons in this atom is (1) 1 (3) 12 (2) 11 (4) 23
When a voltaic cell operates, ions move through the(1) anode (2) cathode (3) salt bridge (4) external circuit
Why doesn't the tribe trust Captain Orlov?
Find the equation of a line with slope -3 and goes through the point (-5,2)
Which phrase describes an atom? (1) a positively charged electron cloud surrounding a positively charged nucleus (2) a positively charged electron cloud surroun
Which radioisotope undergoes beta decay and has a half-life of less than 1 minute? (1) Fr-220 (3) N-16(2) K-42 (4) P-32
As a sample of the radioactive isotope 131I decays, its half-life(1) decreases(2) increases(3) remains the same
PLEASE HELP ME Which of the following codes for a specific protein? DNA gene enzyme chromosome Which of the following is single-stranded, found throughout the c