This web page requires JavaScript to be enabled.

JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

How to enable JavaScript?

Đếm số phần tử lớn hơn 2 phần tử xung quanh

10cth1-2 August 1, 2011 Nam Le 0

[codes=c]int dempt (int a[], int n)
{
  int dem=0;
  if (n>1) dem = a[n-1]>a[n-2];
  for (int i=1; i    if (a[i]>a[i-1] && a[i]>a[i+1])
      dem++;
  return dem;
}[/codes]


Last modified on December 9th, 2020 at 1:26 am

Nam Le
lequocnam



0 responds

Leave a Reply

Your email address will not be published. Required fields are marked *