@@ -0,0 +1,775 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        int n = scanner.nextInt();%0A        int sumOdd = 0;%0A        int sumEven = 0;%0A%0A        for (int i = 0; i %3C n; i++) %7B%0A            int num = scanner.nextInt();%0A%0A            if (i %25 2 == 0) %7B%0A                sumEven += num;%0A            %7D%0A            else if (i %25 2 != 0) %7B%0A                sumOdd += num;%0A            %7D%0A        %7D%0A%0A        int diff = Math.abs(sumEven - sumOdd);%0A%0A        if (sumEven == sumOdd) %7B%0A            System.out.println(%22Yes%22);%0A            System.out.println(%22Sum = %22 + sumEven);%0A        %7D%0A        else %7B%0A            System.out.println(%22No%22);%0A            System.out.println(%22Diff %22 + diff);%0A        %7D%0A    %7D%0A%7D%0A

Create 08.OddEvenSum.java