#include <stdio.h>
#include <stdlib.h>
#define N (3)
int main( void )
{
int i, j;
int mat[ N] [ N] ;
int comp[ N- 1 ] [ N- 1 ] ;
/* Preenche matriz 3x3 */
for ( i = 0 ; i < N; i++ )
{
for ( j = 0 ; j < N; j++ )
{
printf ( "Entre com o Valor [%d][%d]: " , i
+ 1 , j
+ 1 ) ; scanf ( "%d" , & mat
[ i
] [ j
] ) ; }
}
/* Copia conteudo das matrizes ignorando a primeira linha e coluna */
for ( i = 0 ; i < N - 1 ; i++ )
for ( j = 0 ; j < N - 1 ; j++ )
comp[ i] [ j] = mat[ i+ 1 ] [ j+ 1 ] ;
/* Exibe matriz 3x3 */
for ( i = 0 ; i < N; i++ )
{
for ( j = 0 ; j < N; j++ )
}
/* Exibe matriz 2x2 */
for ( i = 0 ; i < N - 1 ; i++ )
{
for ( j = 0 ; j < N - 1 ; j++ )
}
return 0 ;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCiNkZWZpbmUgTiAgKDMpCgppbnQgbWFpbiggdm9pZCApCnsKCWludCBpLGo7CglpbnQgbWF0W05dW05dOwoJaW50IGNvbXBbTi0xXVtOLTFdOwoKCS8qIFByZWVuY2hlIG1hdHJpeiAzeDMgKi8KCWZvciggaSA9IDA7IGkgPCBOOyBpKysgKQoJewoJCWZvciggaiA9IDA7IGogPCBOOyBqKysgKQoJCXsKCQkJcHJpbnRmKCJFbnRyZSBjb20gbyBWYWxvciBbJWRdWyVkXTogIiwgaSArIDEsIGogKyAxICk7CgkJCXNjYW5mKCIlZCIsICZtYXRbaV1bal0gKTsKCQl9Cgl9CgoJLyogQ29waWEgY29udGV1ZG8gZGFzIG1hdHJpemVzIGlnbm9yYW5kbyBhIHByaW1laXJhIGxpbmhhIGUgY29sdW5hICovCglmb3IoIGkgPSAwOyBpIDwgTiAtIDE7IGkrKyApCgkJZm9yKCBqID0gMDsgaiA8IE4gLSAxOyBqKysgKQoJCQljb21wW2ldW2pdID0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