Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Massive
Language: C/C++
Code:
#include <stdio.h>
#include <stdlib.h>
int  K= 0, i, a, d, n;
for (i = 0; i<n-1; i++)
{
    if (a[i]>a[i+1])
    {
        if(K==0)
            d++;
        K = 1;
    }
    else
        K = 0;
}
          
Comments: