Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
4.b
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' // Razak-7051 import java.util.*; import java.lang.*; class Rextester{ public static void main(String args[]){ int a[][]={{1,1,1},{2,2,2},{3,3,3}}; int b[][]={{1,1,1},{2,2,2},{3,3,3}}; int c[][]=new int[3][3]; for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ c[i][j]=0; for(int k=0;k<3;k++) { c[i][j]+=a[i][k]*b[k][j]; } System.out.print(c[i][j]+" "); } System.out.println(); } } }
run
|
edit
|
history
|
help
0
Class multiple
om using stars
Problem 3: New Products
calc exp
4.C
1.5
exp 1
Write a program to sort the odd elements descending order and even elements in ascending order
Dynamic Array
batman