What is the value of alpha[3] after the following code executes? int[] alpha = new int[5]; int j; alpha[0] = 5; for (j = 1; j < 5; j++) {if (j % 2 = = 0) alpha[j] = alpha[j - 1] + 2; elsealpha[j] = alpha[j - 1] + 3; }1. None of these2. 133. 154. 10
+1
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the value of alpha[3] after the following code executes? int[] alpha = new int[5]; int j; alpha[0] = 5; for (j = 1; j < 5; j++) {if ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » What is the value of alpha[3] after the following code executes? int[] alpha = new int[5]; int j; alpha[0] = 5; for (j = 1; j < 5; j++) {if (j % 2 = = 0) alpha[j] = alpha[j - 1] + 2; elsealpha[j] = alpha[j - 1] + 3; }1. None of these2. 133. 154. 10