24th Apr 2017, 6:33 PM
Aman Karnati
Aman Karnati - avatar
2 Antworten
+ 1
You have to declare array like this int array[]={14,46,35,72}; if you change this for(int i=2;i<=array.length-1;i++) to for(int i=2;i< array.length ; i++) it will be better ( my opinion ) but anyway it works
25th Apr 2017, 2:49 AM
‎علي فرعون‎
‎علي فرعون‎ - avatar
- 1
it seems like you've defined 2 arrays in your integer?
24th Apr 2017, 6:41 PM
George Marr
George Marr - avatar