
public class TaskExtra01PowerWithSumOnly {


		public static void main(String[] args) {
			int x = 7;
			int y = 2;

			System.out.println(power(x, y));
		}

		static int power(int k, int l) {
			if (l == 1) {
				return k;
			}
			return multiply(power(k, l - 1), k);
		}

		static int multiply(int x, int y) {
			if (y == 1) {
				return x;
			}
			return multiply(x, y - 1) + x;
		}
	
}

@@ -219,24 +219,58 @@
 urn k;%0A%09%09%09%7D%0A
+%09%09%09%09// int pow =  k pow(l-1) * k;%0A
 %09%09%09return mu
@@ -376,16 +376,45 @@
 x;%0A%09%09%09%7D%0A
+%09%09%09// int mul = x*(y-1) + x;%0A
 %09%09%09retur

Update TaskExtra01PowerWithSumOnly.java