Answer the question
In order to leave comments, you need to log in
How to correctly formulate the condition?
Hello. The essence of the question is this: there is some sequence of numbers, and you need to find local maxima, while they cannot be the initial and final values. And so, how it is correct to write in if about final value? Arrays cannot be used. I know it's a stupid question, but I just can't figure it out.
...
while (c != 0) {
count++;
if (count > 1 && a < b && b > c && ...)
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question