Page 604 - Computer science 868 Class 12
P. 604

25                  { r2=isPrime(j);
                26                    if(r1==2 && r2==2 && (i+j)==n)

                27                  { System.out.println(i+" , "+j);}
                28              }

                29           }
                30         }

                31       }
                32           public static void main()
                33           { Scanner sc=new Scanner(System.in);

                34             System.out.println("Enter number");

                35             int a=sc.nextInt();
                36             GoldBatch ob=new GoldBatch(a);
                37             ob.check();

                38           }
                39       }

              Output of the preceding program is as follows:
              Enter number
              10
              Sum of prime numbers are
              3 , 7
              5 , 5







































                602602  Touchpad Computer Science-XII
   599   600   601   602   603   604   605   606   607   608   609