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

I need this number in standard form
A student reacted NiS2 (MM = 122.83 g/mol) with O2 (MM=32.00 g/mol) to make SO2 (MM=64.07 g/mol) according to this balanced equation 2NiS2+5O2=2NiO+4SO2 If (1.5
Define principles of art and design​
preidential elections are held every four years. senators are elected every six years if a senator was elected in tje presidential year 2016 in what year would
DUE TODAY!!! Imagine you are one of the Apollo 11 astronauts preparing to accomplish the first moon landing. What fears would you have to overcome? What obstac
[tex] \sqrt[4]{16} \times \sqrt[4]{64} [/tex]​
1. Mr. Li did some push-ups on Monday and Tuesday. On Tuesday, he did 300 push-ups, which was three times the difference of the number of push-ups he did on Mo
What is the corresponding singular Spanish phrase for con ellos? Question 11 options: con él contigo conmigo con usted
I need to find what b is with all steps Thank you
Which situation shows a constant rate of change? A. The number of points scored during a volleyball game and the time played, in minutes. B. The height of an