For those unfamiliar with the classic magic square algorithm: A magic square is a two dimensional array (n x n) which contains a numerical value between the values 1 and n^2
You should create the dynamic array in order to listen dimension from keyboard, but don't forget to delete arrays when you don't need it