Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //2. a)
- typedef float Matriz;
- //2. b)
- bool MatrizSimetrica(Matriz *M, int nl, int nc)
- {
- int i, j;
- if(nl == nc)
- {
- for(i=0; i<nl; i++)
- for(j = i+1; j<nc; j++)
- if(*(M+i*nc+j) == *(M+j*nc+i))
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment