@@ -0,0 +1,688 @@
+package javaLoops;%0A%0Aimport java.util.*;%0A%0Apublic class Solution %7B%0A%0A%09public static void readAndOutputPolynom(Scanner scanner) %7B%0A%09%09int a = scanner.nextInt(), %0A%09%09%09b = scanner.nextInt(), %0A%09%09%09polynomPower = scanner.nextInt(),%0A%09%09%09start = a + b,%0A%09%09%09coefficient = 1;%0A%09%09System.out.print(start);%0A%09%09for(int i = 1; i %3C polynomPower; ++i) %7B%0A%09%09%09coefficient *= 2;%0A%09%09%09start += b*coefficient;%0A%09%09%09System.out.print(%22 %22 + start);%0A%09%09%7D%0A%09%09System.out.println();%0A%09%7D%0A%09%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        int lines = scanner.nextInt();%0A        for( int i = 0; i %3C lines; ++i)%0A        %09readAndOutputPolynom(scanner);%0A        scanner.close();%0A    %7D%0A%7D

Add Solution for Java Loops