+ 1
Is my code correct?
2 Respuestas
+ 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
- 1
it seems like you've defined 2 arrays in your integer?