It is an exercise that I cannot solve, besides that my knowledge about matrices is still zero and I don't know where to start.
public class ControlMatriz {
@SuppressWarnings({ "null" })
public void cien1NumNatural(int x, int supx)
{
for(int i=0;i<x;i++){
for(int j=0;j<supx;j++){
int[][] matrizM = null;
System.out.println(matrizM[i][j]);
if (matrizM[i][j] % 2==0)
System.out.println(matrizM[i][j]*5);
}
}
}
}
First: Calculate how many? and which one is it? will be the bases.
Second: Calculate the powers.
Third: You print the information.
Although you don't need the base array at all, in the second loop, you could replace it with:
((i + 1) * 2)