Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  es.1
Language: C/C++
Code:
#include <stdio.h>
int check (int a [], int dim)
{int i=0;
int trovati_fuori_posto=0;
while (i<dim-2 && trovati_fuori_posto==0)
 {if (a[i]%2!=0 && a[i+1]==0)
     trovati_fuori_posto=1
  else i=i+1;
 }
return trovati_fuori_posto==0;
}
          
Comments: