We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b37c434 commit 563da07Copy full SHA for 563da07
MagicSquare.java
@@ -1,9 +1,8 @@
1
-/**
2
- * MagicSquare.java
3
- * the class represent a MazicSquare
4
- * @author (liron mizrhai)
5
- * @Date (1/7/2023)
6
- */
+//*******************************************************
+// MagicSquare.java
+// The class represent a MazicSquare
+// Author: liron mizrahi
7
public class MagicSquare
8
{
9
/**
@@ -62,7 +61,11 @@ public static int sumSecondaryDiag(int[][] mat)
62
61
}
63
return sum;
64
}// end of method sumSecondaryDiag
65
-
+ /**
+ * method return true if given int[][] is magicsquare otherwise return false
66
+ * @parm int[][] mat
67
+ * @return boolean
68
+ */
69
public static boolean isMagicSquare(int[][] mat)
70
71
int sumRow;
0 commit comments