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

Santa anna fought in the battle of _____ in 1813 to help free texas from spanish rule.
How are surveys created to collect and analyze data?
According to professor tilson's lecture on baroque architecture, ________ established the forms and spirit of baroque architecture in england with his masterpie
Which structure of the neuron is responsible for the quick transmission of a nerve impulse?
why is frictional unemployment of relatively little concern to economists or government officials
Find the mean of the data set. If necessary, round to the nearest tenth 18, 1, 17.9, 16.8, 18.7, 15.1 A. 14.3 B. 13.6 C. 17 D. 17.3
Previous reports offer limited support for an association between cigarette smoking andhodgkin's disease. in a recent study investigators examined the relations
How does Bly compose her journalistic piece "Ten Days in a Mad-House" and invoked her readers to anger. She builds the tension of events by presenting the mo
Find the csc of a 63 degree
Macbeth murders King Duncan and is then rewarded by being crowned king himself. What recurring motif in the play is this turn of event an example of?