@@ -0,0 +1,1015 @@
+import static java.lang.System.out;%0A%0Apublic class SumOfMultiples %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09if(args.length %3C 2) %7B%0A%09%09%09out.println(%22This program requires 1 integer input and 1 multiple input!%22);%0A%09%09%09out.println(%22NOTE: This program can handle multiple 'Multiple integer' inputs.%22);%0A%09%09%09System.exit(0);%0A%09%09%7D%0A%09%09%0A%09%09int givenNum = Integer.parseInt(args%5B0%5D);%0A%09%09int%5B%5D givenMultiples = new int%5Bargs.length-1%5D;%0A%09%09for(int i = 0; i %3C args.length; i++) %7B%0A%09%09%09if(i == 0)%0A%09%09%09%09continue;%0A%09%09%09givenMultiples%5Bi-1%5D = Integer.parseInt(args%5Bi%5D);%0A%09%09%7D%0A%09%09%0A%09%09int totalSum = 0;%0A%09%09for(int g = 0; g %3C givenMultiples.length; g++) %7B%0A%09%09%09int sum = 0;%0A%09%09%09for(int i = givenMultiples%5Bg%5D; i %3C givenNum; i += givenMultiples%5Bg%5D) %7B%0A%09%09%09%09sum += i;%0A%09%09%09%7D%0A%09%09%09totalSum += sum;%0A%09%09%7D%0A%09%09%0A%09%09out.println();%0A%09%09out.print(%22Multiples of - %22);%0A%09%09for(int multiple : givenMultiples)%0A%09%09%09out.print(%22 %22 + multiple);%0A%09%09out.print(String.format(%22 under %25d - %5Cn%22, givenNum));%0A%09%09out.println(String.format(%22Sum Of Multiples - %25d%22, totalSum));%0A%09%09%0A%09%09out.println();%0A%09%7D%0A%0A%7D%0A

Create SumOfMultiples.java