@@ -0,0 +1,961 @@
+package algorithms.warmup;%0D%0A%0D%0Aimport java.util.Scanner;%0D%0A%0D%0A/*%0D%0A * Problem Statement: * %0D%0A * You are given an array of integers of size N. You need to print the sum of%0D%0A * the elements of the array.%0D%0A * %0D%0A * Input Format:%0D%0A * The first line of the input consists of an integer N. The next line contains%0D%0A * N space-separated integers describing the array.%0D%0A * %0D%0A * Constraints:%0D%0A * 1 %3C= N %3C= 1000%0D%0A * 0 %3C= A%5Bi%5D %3C= 1000%0D%0A * %0D%0A * Output Format:%0D%0A * Output a single value equal to the sum of the elements of the array.%0D%0A * %0D%0A * Sample Input:%0D%0A * 6%0D%0A * 1 2 3 4 10 11%0D%0A * %0D%0A * Sample Output:%0D%0A * 31%0D%0A */%0D%0Apublic class SimpleArraySum %7B%0D%0A%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09        %0D%0A        Scanner sc = new Scanner(System.in);%0D%0A        %0D%0A        int numInts = sc.nextInt();%0D%0A        int sum = 0;%0D%0A        for (int i = 0; i %3C numInts; i++) %7B%0D%0A            sum += sc.nextInt();%0D%0A        %7D%0D%0A        sc.close();%0D%0A        %0D%0A        System.out.println(sum);%0D%0A%09%7D%0D%0A%7D

Add SimpleArraySum