Update OOP/Java/Lab/Week4/TraceNorm.java

This commit is contained in:
Aadit Agrawal 2024-08-31 09:25:41 +05:30
parent 9e7c46ea8d
commit 3c0de68177

View File

@ -13,7 +13,10 @@ class TraceNorm {
System.out.println("Enter the elements of the matrix:");
for (int i = 0; i < n; i++) {
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();
}
}