Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "my.h"
- void oddindex(int rownum,int colnum, int** table)
- {
- int i;
- int j;
- int z = -1;
- printf("c.The various rows of the array that contain at least one odd int are:$
- for ( i=0; i<rownum; i++)
- {
- for( j=0; j<colnum; j++)
- if(table[i][j]%2!=0)
- z=i;
- printf("[%4d]\t",z);
- z= -1;
- if(j== colnum)
- printf("");
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement