Ask Question

What is output by the code below?

int[] nums = new int[10];

for (int i=0; i < nums. length; i++)

{

nums[i] = i*2;

}

System. out. println (nums[5]);

a. 16

b. 10

c. 14

d. 18

e. 12

+2
Answers (1)
  1. 5 June, 05:03
    0
    Answer: I think it is a

    Explanation:Sorry if it it is worng
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is output by the code below? int[] nums = new int[10]; for (int i=0; i < nums. length; i++) { nums[i] = i*2; } System. out. println ...” 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.
Search for Other Answers