@@ -0,0 +1,564 @@
+package com.hackerrank.contests.daysOfCode_30;%0A%0Aimport java.util.Scanner;%0A%0Apublic class Day5_Loops %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%09@SuppressWarnings(%22resource%22)%0A%09%09Scanner scanner = new Scanner(System.in);%0A%09%09int T = scanner.nextInt();%0A%09%09while (T-- %3E 0) %7B%0A%09%09%09int a = scanner.nextInt();%0A%09%09%09int b = scanner.nextInt();%0A%09%09%09int N = scanner.nextInt();%0A%09%09%09int power = 0;%0A%09%09%09while (N-- %3E 0) %7B%0A%09%09%09%09a += ((int) Math.pow(2, power) * b);%0A%09%09%09%09System.out.print(a + %22 %22);%0A%09%09%09%09power++;%0A%09%09%09%7D%0A%09%09%09System.out.println();%0A%09%09%7D%0A%0A%09%7D%0A%0A%7D%0A

Create Day5_Loops.java