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

what is the surface area of this prism?
Convert the following complex number into its polar repersentation of -4i
Llena el espacio en blanco con POR o PARA ___ el lunes tengo que terminar la tarea ___ la clase de química. A) Para/para B) Por/por C) Para/por D) Por/ para
what will happen to a balloon after a few days?
I need help on this question plz
How many kj of heat are needed to completely melt 144 g of titanium metal, given that the metal is at its melting point? the heat of fusion for this metal is 18
The measure of one interior angle of a triangle is 45 What can you conclude about the other two interior angles of the triangle?
Describe the two vantage points from which a description can be written
the numbers 2-12 are written on cards and placed in the bag.what is the probability of picking an even number then replacing it and then picking a 7?
Can someone simplify pls