Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int fusionesenzapari(int a[ml], int b[ml], int c[ml], int n, int m){
- int i, j;
- for(i=0;i<n&&i<m;i++){
- if(a[i]%2)
- c[k++]=a[i];
- if(b[i]%2)
- c[k++]=b[i];
- }
- if(i<n)
- for(j=i;j<n;j++)
- if(a[j]%2)
- c[k++]=a[j];
- if(i<m)
- for(j=i;j<m;j++)
- if(b[j]%2)
- c[k++]=b[j];
- return k;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement