Page 478 - computer science (868) class 11
P. 478

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









                476476  Touchpad Computer Science-XI
   473   474   475   476   477   478   479   480   481   482   483