Math, asked by riyaparwani1983, 5 hours ago

Complete the magic square so that the sum of the
integers in each day coloum or diagonal is -12​

Answers

Answered by Anonymous
0

Answer:

hlooooooooooooooooooo

Answered by m9362399
0

Step-by-step explanation:

A magic square is a square two-dimensional array of positive integers such that the sum of each row, column, and diagonal is the same constant. For example, the following is a magic square: because the sum of the integers in each row is 264, the sum of the integers in each column is 264, and the sum of the integers in each of the two diagonals (18 + 81 + 69 + 96 and 61 + 98 + 16 + 89) is 264. The size of the square array shown above is 4 because it has four rows and four columns. The following Java class represents a square array of integers, but its method implementations are missing: public class Square { private int mySize; private int[][] array; public Square(int initialSize) {} public void set(int[][] values) {} public boolean isMagicSquare() {} . . . } // end Square a. Complete the definition of the constructor. b. Complete the definition of the method set to copy integers from the given array to the data field array. c. Complete the definition of the method isMagicSquare so that it returns true if array contains a magic square, or false if it does not.

public Square(int initialSize) { mySize = initialSize; } public void set(int[][] values) { for(int i=0;i

Similar questions