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

use the commutative property to find the unknown numberin the equation 35x70=mx35
the energy stored in gasoline is??
What times what equals 169
a pizza parlor has 8 different toppings and 3 different cheeses to choose from on the menu. how many pizza combinations are possible if each pizza has 1 toppin
Two different ways to find the difference for 12-3
a train traveled 360 miles in 6 hours. how many miles per hour did the train travel?
19. Why does Mayella Ewell get angry at Atticus when he calls her "ma'am"? A. Mayella Ewell thinks Atticus is making fun of her. B. Atticus is being disrespe
One side of a kite is 6 cm less than 4 times the length of another. The perimeter of the kite is 68 cm. Find the length of each side of the kite.
Which nation was especially worried about Japan’s victory in the Sino-Japanese War?
Compare the lifestyles of hunter-gatherers with those of settlers of early agricultural communities. The Neolithic Revolution describes the