@@ -0,0 +1,536 @@
+import java.util.*;%0Aimport java.io.*;%0A%0Aclass Solution%7B%0A    public static void main(String %5B%5Dargh)%7B%0A        Scanner in = new Scanner(System.in);%0A        int t=in.nextInt();%0A        for(int i=0;i%3Ct;i++)%7B%0A            int a = in.nextInt();%0A            int b = in.nextInt();%0A            int n = in.nextInt();%0A            int sum=a;%0A            for(int j=0;j%3Cn;j++)%7B%0A                sum=sum+(int)Math.pow(2,j)*b;%0A                System.out.print(sum+%22 %22);%0A            %7D%0A            System.out.println();%0A        %7D%0A        in.close();%0A    %7D%0A%7D%0A

Create JavaLoopsII.java