Enter array of numbers: Compute the sum of absolute differences of consecutive numbers of a given array of integers.
Compute the sum of absolute differences of consecutive numbers.