Problem 1. num1 = 3, num2 = 2 i = 1, j = 1 result = 2 i = 1, j = 2 result = 4 i = 2, j = 1 result = 6 i = 2, j = 2 result = 8 i = 3, j = 1 result = 10 i = 3, j = 2 result = 12 Output = 12 In general, the body of the inner loop executes num1*num2 times. Therefore, when program1(25, 18) is called, the body of the inner loop is executed 450 times. The variable result starts off at 0 and increases by 2 with each execution and therefore reaches 900 when the function ends. ------------------------------- Problem 2. result = 1 n = 8 result = 2 n = 4 result = 3 n = 2 result = 4 n = 1 Output = 4 ------------------------------- Problem 3. test3 test3helper ----- ----------- n = 2 ----- 3 -----> n = 3 Output = 3 Output = 9 <---- 12------ temp = 12 Output = 2 Output = 12 n = 1 ----- 2 ------> n = 2 temp = 4 Output = 2 Output = 4 <---- 7 ------ temp = 7 Output = 1 Output = 7 n = 0 Therefore, the output of the program is: 3 9 2 12 2 4 1 7