Enter array of numbers:


Compute the sum of absolute differences of consecutive numbers.