Professional Documents
Culture Documents
*;
class matrix
double d=0.0;
System.out.println("enter m*n");
int p=0,q=0,x=0,s=0,y=1;
System.out.println("OUT OF RANGE");
else
for(int i=0;i<M;i++)
for(int j=0;j<N;j++)
for(int i=0;i<M;i++)
for(int j=0;j<N;j++)
{
b[p]=a[i][j];//elements of the row in another array
for(int i=0;i<M;i++)
for(int j=0;j<N;j++)
s=(int)d;
x=x+s;
y++;
q++;
y=1;
x=0;
for(int i=0;i<M;i++)
for(int j=0;j<N;j++)
System.out.println();
for(int j=0;j<q;j++)
/*
M=1
N=3
1 4 4 100
*/