Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int sum1=0;int sum2=0;
- System.out.println("GO");
- for (int j=0;j!=a.length;j++)
- a[j]=reader.nextInt();
- for (int i=0;i!=a.length/2;i++)
- {sum1+=a[i];
- sum2+=a[a.length-i-1];}
- if (sum1==sum2)
- return true;
- else return false;}}
Add Comment
Please, Sign In to add comment