@@ -0,0 +1,622 @@
+import java.util.Scanner;%0Aimport java.lang.Math;%0A%0A%0Apublic class JavaLoops %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner scanner = new Scanner(System.in);%0A%0A        int t = scanner.nextInt();%0A        for (int i = 0; i %3C t; i++) %7B%0A            int a = scanner.nextInt();%0A            int b = scanner.nextInt();%0A            int n = scanner.nextInt();%0A%0A            int sum = a;%0A            for (int j = 0; j %3C n; j++) %7B%0A                int x = ((int) Math.pow(2, j))*b;%0A                System.out.printf(%22%25d %22, a + x);%0A                a += x;%0A            %7D%0A%0A            System.out.println();%0A        %7D%0A    %7D%0A%7D%0A

Add Java Loops solution