Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int foo(int t[], int sor, int oszlop)
- {
- int i, j, paros=0, parooos=0;
- for (j=0; j<oszlop; ++j){
- paros=0;
- for (i=0; i<sor; ++i)
- if ((t[i*oszlop+j]%2)!=0) paros--;
- if (paros==0)
- parooos++;
- }
- if (parooos>0)
- return 1;
- else
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement