class Array58
{
public static void main(String[] args)
{
int i,j,k;
int [][] a={{1,2,3},{4,5,6},{7,8,9}};
int [][] b={{9,8,7},{6,5,4},{3,2,1}};
int [][]c=new int[3][3];
for (i=0;i<a.length;i++)
{
for (j=0;j<a[i].length;j++)
{
System.out.print(a[i][j]+" ");
}
System.out.println(" ");
}
System.out.println(" ");
for (i=0;i<b.length;i++ )
{
for (j=0;j<b[i].length;j++)
{
System.out.print(b[i][j]+" ");
}
System.out.println(" ");
}
System.out.println(" ");
for(i=0;i<a.length;i++)
{
for(j=0;j<b.length;j++)
{
c[i][j]=0;
for(k=0;k<a.length;k++)
{
c[i][j]+=a[i][k]*b[k][j];
}
System.out.print(c[i][j]+" ");
}
System.out.println(" ");
}
}
}
bgfygfrhjyuyhh
You basically write a nested for loop (one for within another one), to copy the elements of the matrix to a new matrix.
yes ,i can add the website link in java program when we write.
You simply multiply the tax rate with the item's original cost and divide by hundred, to get the tax. Then you add that to the original cost, to get the total cost. In Java you use + to add, * to multiply, and / to divide.
Exactly what do you mean by 'C program in Java'
write a java program to display "Welcome Java" and list its execution steps.
\n
You can use Java's built-in functions to write a code that will find multilingual languages.
It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.It isn't. It can also be used to write desktop applications. Java does have many options to program for the Internet, but that is not the only possibility.
write a program draw circle and ellipse by using oval methods in java
Write a program that graphically demonstrates the shortest path algorithm
You can use the Math.sqrt() method.