You are on page 1of 1

int steepCount = 0; int thisDifference = 0; for (int i = 0; i < markers.

length-1; i++){ //cant measure last one else you get exception thisDifference = markers[i] - markers[i+1] if (thisDifference > 29 || thisDifference<-29) { steepCount++; } }// end for if (steepCount > 2) return true; else return false; }// end main

You might also like