+ 3
Figure out the output of the array sum below
int [ ] myArr = {9, 42, 6, 12}; int sum=0; for(int x=0; x<myArr.length; x++) { sum += myArr[x]; } System.out.println(sum);
4 Réponses
+ 14
//58
i think its a question from java challenges
/* how these type of questions get approved & mine gets declined saying "calculation , many exists , general" 😕 */
+ 3
@gaurav , similar things happen to me also, 🤔many tricky question got declined , saying " Too many similar question exist".
+ 2
58
+ 2
It was in java course as I remember