# 2 dimensional array

**Question description**

I need to enter a number n from 1 to 15, and this number will then be used to generate an nxn array, that will be filled with random numbers if random seeding is toggled on, and with numbers from 1 to n^2 if random seeding is turned off. i then have to find the sum of the row, column and diagonal after.

this is the format:3) Display array with sums

--------------------------

1 2 3 4 5 | 15

6 7 8 9 10 | 40

11 12 13 14 15 | 65

16 17 18 19 20 | 90

21 22 23 24 25 | 115

-------------------------

65 55 60 65 70 75 65

## Tutor Answer

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors