i am just starting c++ few weeks ago, and i am facing a matrix problem now.
the program has to be built so that the user can select the size of the matrix but it will only be odd numbers.such as 1,3,7 etc
then the out put of the matrix needs to be
9 2 3
8 1 4
7 6 5
in this form
the middle element needs to be the 1 and then it assign values in a cyclic format.
Thanks~~
the program has to be built so that the user can select the size of the matrix but it will only be odd numbers.such as 1,3,7 etc
then the out put of the matrix needs to be
9 2 3
8 1 4
7 6 5
in this form
the middle element needs to be the 1 and then it assign values in a cyclic format.
Thanks~~
Comment