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

5/3 + n = 4 1/4 what is n??
based on the 'night' by Elie Wiesel from the first 5 chapters what do you think about this: Is there such a thing as “Morality” in survival situations? Are huma
17. Jenny is kicking a soccer ball to make a goal. She is 9 feet from the goal. The goal is 6 feet high. She kicks it one foot under the top of the goal. What w
How many student spent more than 9 hours doing homework? and what percent of students spent 8 or more hours doing homework?
State whether your hypothesis was supported or rejected by your data and why. Based on your lab results and your prior knowledge, what do you think is going on
Which sentence is grammatically correct? A.) El jugo del sandía es muy delicioso. B.)El jugo de el sandía es muy delicioso. C.)El jugo de la sandía es muy de
In his expert the author characterize Clara’s action to reveal that Clara
five times the difference between 3/4 and 1/2
5+5+5+5+5+5+5+5+5+5+5
The first bookshelf in the science fiction section of a library can hold 2 comma 768 books. The bookshelf has 8 shelves. Each shelf can hold the same number of