What is the value of alpha[3] after the following code executes?
int[] alpha = new int[5]; int j; for (j = 4; j > = 0; j--) {alpha[j] = j + 5; if (j < = 2) alpha[j + 1] = alpha[j] + 3; }1. 9
2. 5
3. 8
4. 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; for (j = 4; j > = 0; j--) {alpha[j] = j + ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Home » Computers and Technology » What is the value of alpha[3] after the following code executes? int[] alpha = new int[5]; int j; for (j = 4; j > = 0; j--) {alpha[j] = j + 5; if (j < = 2) alpha[j + 1] = alpha[j] + 3; }1. 9 2. 5 3. 8 4. 10