Page 526 - Cs_withBlue_J_C11_Flipbook
P. 526

62           public static void main(String args[])
                63           {

                64               transposeSymmetric ob=new transposeSymmetric();
                65               ob.transymcheck();

                66           }
                67       }


              The output of the preceding program is as follows:
              enter the size of the matrix
              3
              enter the matrix elements
              1
              2
              3
              4
              5

              6
              7
              8
              9
              Original Matrix
              123
              456
              789
              Transposed Matrix
              147
              258

              369
              symmetric matrix

                                                         Variable Description
                 NAME         TYPE                                       DESCRIPTION

               a           int          To store the array
               b           int          To store the transposed array
               i           int          Loop variable
               j           int          Loop variable

               flag        int          Counter variable









                524524  Touchpad Computer Science-XI
   521   522   523   524   525   526   527   528   529   530   531