Page 644 - Computer science 868 Class 12
P. 644

27                       a+=(flag==0)?2:3;
                28                       a1+=2;

                29                       flag=0;
                30                   }

                31                   else
                32                   {

                33                       if(flag==0)
                34                       {

                35                           a1++;
                36                           flag=1;

                37                           continue;
                38                       }
                39                       else

                40                       {

                41                           flag=0;
                42                           a+=2;
                43                           a1++;

                44                           continue;
                45                       }

                46                   }
                47               }

                48
                49               System.out.print("Output\t: ");

                50               StringTokenizer st=new StringTokenizer(s);
                51               while(st.hasMoreTokens())

                52                   System.out.print ((st.nextToken()).trim()+" ");
                53           }

                54       }
                55       w="";

                56       c=0;
                57          }

                58       }









                642642  Touchpad Computer Science-XII
   639   640   641   642   643   644   645   646   647   648   649