help with program

http://cpp.sh/9i66o

how can i make this code better?
can i use for's?
i didnt really know how to play around with the indexes to get it to do what i wanted so i used ifs.
this program is supposed to check the three left sided diagonals of a two dimensional array,and check witch diagonal has each number that is greater than or equal to the diagaonal before it
thank you
Topic archived. No new replies allowed.