Update OOP/Java/Lab/Week4/TraceNorm.java
This commit is contained in:
parent
9e7c46ea8d
commit
3c0de68177
@ -13,7 +13,10 @@ class TraceNorm {
|
|||||||
System.out.println("Enter the elements of the matrix:");
|
System.out.println("Enter the elements of the matrix:");
|
||||||
for (int i = 0; i < n; i++) {
|
for (int i = 0; i < n; i++) {
|
||||||
for (int j = 0; j < n; j++) {
|
for (int j = 0; j < n; j++) {
|
||||||
matrix[i][j] = sc.nextDouble();
|
System.out.print(
|
||||||
|
"Enter the element at (" + i + "," + j + "): "
|
||||||
|
);
|
||||||
|
matrix[i][j] = sc.nextInt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user