ola porfavor ayudenme con este problema de java
m pide sumar sus extremos ...porfa no se como hacer . plis ayuda suma de extremos de una matriz en java---matriz
procedimientos :
static void mostrar (int a[][]){
for(int c=0;c<4;c++){
for(int f=0;f<4;f++){
System.out.print(a[c][f]);
System.out.print(" ");
} System.out.println(" ");
}
}
static void cargar(int b[][]){
for(int c=0;c<4;c++){
for(int f=0;f<4;f++){
b[f][c]=(int )(Math.random()*50+1);
}
}
static void sumar_extremos(int a[][]){
int s=0; int h=0; int k=0; int d=0;
int t=0;
for(int c=0; c<4;c++){
for(int f=0;f<4;f++){
}
}
|