int i = 4;
int j = 21;
int k = ++i* 7 + 2 -j--; System.out.println("k=" + k); with steps
Answers
Answered by
0
solution
public static void insertionSort (int [] a) { // method to sort using the insertion sort for (int k = 1; k < a.length; k++) { int item = a[k]; int i = k-1; ...
Answered by
3
Answer:
Input : x = 100
n = 2
Output : 3
Explanation: There are three ways to
express 100 as sum of natural numbers
raised to power 2.
100 = 10^2 = 8^2+6^2 = 1^2+3^2+4^2+5^2+7^2
Input : x = 100
n = 3
Output : 1
Explanation : The only combination is,
1^3 + 2^3 + 3^3 + 4^3
hey can I be your friend
are you also Army
Similar questions