Computer Science, asked by vinopraba97, 2 months ago

int main() {
int arr[={3,5,8,6,7,9,5);
int i=0,n=7,sum=0;
for (i = 1;i<= n -2; i++) {
if (arr[i - 1] < arr[i] && arr[i] > arr[i + 1]) {
sum=arr[i-1]+arr[i]+arr[i+1];
}
}
printf("%d",sum);
}
what is the output?​

Answers

Answered by Monishabisht
0

I don't understand your question

Similar questions