Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. #include "my.h"
  2.  
  3.  
  4. void oddindex(int rownum,int colnum, int** table)
  5.  
  6. {
  7. int i;
  8. int j;
  9. int z = -1;
  10.  
  11. printf("c.The various rows of the array that contain at least one odd int are:$
  12.  
  13.  
  14. for ( i=0; i<rownum; i++)
  15.  
  16. {
  17.  
  18. for( j=0; j<colnum; j++)
  19.     if(table[i][j]%2!=0)
  20.         z=i;
  21.     printf("[%4d]\t",z);
  22.     z= -1;
  23. if(j== colnum)
  24. printf("");
  25. }
  26.  
  27.  
  28. return;
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement