Untitled
Never
import java.util.Scanner; class matrix { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter size of matrix"); int m = sc.nextInt(); int n = sc.nextInt(); double[][] matrix = new double[m][n]; int zeroCount = 0; System.out.println("Enter the elements of the matrix"); for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { matrix[i][j] = sc.nextDouble(); if (matrix[i][j] == 0) { zeroCount++; } } } if (zeroCount > (m * n) / 2) { System.out.println("It is a sparse matrix"); } else { System.out.println("It is not a sparse matrix"); } } }
Raw Text
-
Korina Kova - OnlyFans Leaks
13 min ago
-
dfsdfs fsfsd sfdd sdsffds
21 min ago
-
Pedowoman boy
36 min ago
-
C..P V.I.D..E.O.S
36 min ago
-
πππ NEW CP UPDATE MAY 2024 VIDEOS WORKING ALL FREE FOLDER πππ
37 min ago
-
CPπ LOL1ππ§ FOLDERSπ―π
49 min ago
-
Untitled
1 hour ago
-
+2347049440188"" I want to join occult for money and power ritual,,call the spiritual grandmaster of
C++ | 1 hour ago
-
+2347049440188"" I want to join occult for money and power ritual,,call the spiritual grandmaster of
C# | 1 hour ago
-
+2347049440188"" I want to join occult for money and power ritual,,call the spiritual grandmaster of
C++ | 1 hour ago