title: Check if values in the array are even and if true return true
body: <p>This is what I've done so far but the result is always 1 no matter if the array has odd or even numbers inside. What am I doing wroing?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdbool.h&gt;
  
  int main(){
      int vector[10]={2,4,6,8,10,12,14,16,18,20};
      bool function(int i){
          for(i=0,i&lt;10,i++){
              if(vector[i]%2==0){
                  return true;
                  }
              return false;
              }
          }
      }
  }
  </code></pre>