import java.io.*;
class mat
{
protected static void main()throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader());
int a[][]=new int[10][10];
int b[][]=new int[10][10];
int c[][]=new int[10][10];
for(byte i=0;i<10;i++)
{
for(byte j=0;j<10;j++)
{
System.out.print("Enter the value of a[ "+i+" ][ "+j+"]: ");
a[i][j]=Integer.parseInt(in.readLine());
}
}
for(byte i=0;i<10;i++)
{
for(byte j=0;j<10;j++)
{
System.out.print("Enter the value of b["+i+" ][ "+j+" ]: ");
b[i][j]=Integer.parseInt(in.readLine());
c[i][j]=a[i][j]+b[i][j];
}
}
for(byte i=0;i<10;i++)
{
System.out.println();
for(byte j=0;j<10;j++)
{
System.out.print(c[i][j]+" ");
}
}
}}
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.
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
barsanabegam
Yes, that's what JNI is good for.