answersLogoWhite

0

Hamburger Java New

User Avatar

Anonymous

15y ago
Updated: 8/16/2019

import java.io.*;

class MatrixMultiply{

public static void main(String[] args) {

int array[][] = {{5,6,7},{4,8,9}};

int array1[][] = {{6,4},{5,7},{1,1}};

int array2[][] = new int[3][3];

int x= array.length;

System.out.println("Matrix 1 : ");

for(int i = 0; i < x; i++) {

for(int j = 0; j <= x; j++) {

System.out.print(" "+ array[i][j]);

}

System.out.println();

}

int y= array1.length;

System.out.println("Matrix 2 : ");

for(int i = 0; i < y; i++) {

for(int j = 0; j < y-1; j++) {

System.out.print(" "+array1[i][j]);

}

System.out.println();

}

for(int i = 0; i < x; i++) {

for(int j = 0; j < y-1; j++) {

for(int k = 0; k < y; k++){

array2[i][j] += array[i][k]*array1[k][j];

}

}

}

System.out.println("Multiply of both matrix : ");

for(int i = 0; i < x; i++) {

for(int j = 0; j < y-1; j++) {

System.out.print(" "+array2[i][j]);

}

System.out.println();

}

}

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Are there some good new hamburger recipes online?

There plenty of good new hamburger recipes online. These easy-to-fix hamburger meat recipes are endlessly satisfying and delicious. The hamburger is probably the most popular food in the world.


What is the new version of java?

The latest version of java is called Java 5 or Tiger.


What is new version of Java?

The latest version of java is called Java 5 or Tiger.


What is java one studio?

it is java people community to discuss about the new development and new development those are done with java language it is presented


Are there hamburger stands in new york city?

Yes


Where is the Java Historical Society in Java Villlage New York located?

The address of the Java Historical Society is: 4441 Main Street, Java Villlage, NY 14083


Did new haven made the first hamburger?

No, New Haven did not make the first hamburger. The hamburger is widely believed to have originated in the United States in the late 19th century, with several claims to its creation, including a dish served at the 1904 St. Louis World's Fair. While New Haven is known for its culinary contributions, particularly its pizza, the claim of the first hamburger is attributed to other locations and establishments.


What is the java new version?

J2se7.0


How do you install java for RuneScape?

Download the new java update and install. It should be Version 7 Update 7.


What are the release dates for The New Big Ball with Neil Hamburger - 2010 TV?

The New Big Ball with Neil Hamburger - 2010 TV was released on: USA: 10 March 2010 (limited)


Why are you used new operator in main method in java?

new is used for memory allocation in java which on later automatically deallocated by garbage collector.


What are three hamburger restaurants in New York?

One should not have a problem locating a hamburger restaurant in New York City, New York. Burger King, Joy Burger Bar and Lucky's Famous Burgers are all located in New York City.