Predict the output??
class teo {
public static void main(String[] args) {
int[] a={0,2,4,1,3};
for(int i=0;ia.length;i++){
a[i]=a[(a[i]+3)%a.length];
}
System.out.println(a[1]);
}
}

Posted on by