Write a console program that calculates the absolute difference of two integers. You can think of the absolute difference of two numbers as the distance between them on the number line. For example, the absolute difference of -1 and 2 is 3:
Enter two values to calculate their absolute difference: 8 6 Absolute difference of 8 and 6 is 2.Mind that the absolute difference is always positive and that the order of the numbers does not matter:
Enter two values to calculate their absolute difference: 6 8 Absolute difference of 6 and 8 is 2.Negative numbers are also allowed:
Enter two values to calculate their absolute difference: -2 8 Absolute difference of -2 and 8 is 10.