@@ -0,0 +1,778 @@
+import java.io.*;%0Aimport java.util.*;%0A%0A// https://www.hackerrank.com/contests/30-days-of-code/challenges/day-5-loops/submissions/code/4682102%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scn = new Scanner(System.in);%0A        for (int cases = scn.nextInt(); cases %3E 0; --cases) %7B%0A            %0A            int a = scn.nextInt();%0A            int b = scn.nextInt();%0A            int n = scn.nextInt();%0A            %0A            int sum = 0;%0A            for (int i = 0; i %3C n; i++) %7B%0A                sum += (int)(Math.pow(2, i) * b);%0A                if (i != 0)%0A                    System.out.print(%22 %22);%0A                System.out.print(sum+a);%0A            %7D%0A            if (cases %3E 1)%0A                System.out.println();%0A        %7D%0A    %7D%0A%7D%0A

Create Day05-Loops.java