Page 617 - ComputerScience_Class_11
P. 617

61                      if(c==3)
                   62                      {

                   63                          if(m>122)
                   64                          {

                   65                              w="";

                   66                              c=0;
                   67                          }

                   68                      }

                   69                  }
                   70              }

                   71              String w3=""+w2;

                   72              System.out.println(w3);
                   73          }

                   74

                   75          void output() // display output
                   76          {

                   77              System.out.println(sub);

                   78          }
                   79

                   80          public static void main(String args[])

                   81          {
                   82              decoder ob = new decoder(); // creating objects to invoke function

                   83              ob.input();

                   84              ob.compute();
                   85              ob.output();

                   86          }
                   87      }


                 The output of the preceding program is as follows:

                       BlueJ: Terminal Window - Java
                   Options

                  Enter the code:083088073
                  SXI





                                                                                                Internal Assessment  615
   612   613   614   615   616   617   618   619   620   621   622