metrix program in Java
class metrix
{
int m[][]={{1,2,13,4,5},{2,3,24,5,6},{3,4,35,6,7},{4,5,46,7,8}};
void printArray()
{
for(int i=0;i<4;i++)
{
for(int j=0;j<5;j++)
System.out.print(m[i][j]+" ");
System.out.println();
}
}
public static void main(String a[])
{
metrix ab=new metrix();
ab.printArray();
}
}
Comments
Post a Comment