We having an array eg: a[]
, I need to pass some values randomly in to this, eg:a[98,75,65,102,35,85,6]
.
If I subtract the value from before element (65-75=-10)
, coming to 98
we can't subtract it because we are not having the previous element, so we can leave it. When we subtract all the element with its previous number we will get some value, I need to display that highest value in the output.