Advertisement
zsoltizbekk

Untitled

May 21st, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. int foo(int t[], int sor, int oszlop)
  6. {
  7.     int i, j, paros=0, parooos=0;
  8.  
  9.     for (j=0; j<oszlop; ++j){
  10.         paros=0;
  11.         for (i=0; i<sor; ++i)
  12.             if ((t[i*oszlop+j]%2)!=0) paros--;
  13.         if (paros==0)
  14.             parooos++;
  15.     }
  16.     if (parooos>0)
  17.         return 1;
  18.     else
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement