Swapping Diagonal elements of a Matrix
Java Program To Swap Diagonal elements of a Matrix A matrix of order N X N is given. S wap the elements of major and minor diagonals . Major Diagonal Elements of a Matrix are the ones that occur from Top Left of Matrix Down To Bottom Right Corner . The Major Diagonal is also known as Main Diagonal or Primary Diagonal . Minor Diagonal Elements of a Matrix : The Minor Diagonal Elements are the ones that occur from Top Right of Matrix Down To Bottom Left Corner . Also known as Secondary Diagonal . Logic and Program :-