+ 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);

9th Feb 2018, 8:53 AM
Marvin Oluoch
Marvin Oluoch - avatar
4 ответов
+ 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" 😕 */
8th Feb 2018, 4:46 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
@gaurav , similar things happen to me also, 🤔many tricky question got declined , saying " Too many similar question exist".
10th Feb 2018, 1:29 PM
Mr.Curious
Mr.Curious - avatar
+ 2
58
8th Feb 2018, 4:16 PM
sal sal
sal sal - avatar
+ 2
It was in java course as I remember
8th Feb 2018, 5:06 PM
Sad
Sad - avatar