There is a Java task:
Print those array elements whose indices are full squares (1, 4, 9, 16, ...).
I can not understand the task. Explain what kind of cycle and condition is needed?
public static void main(String[] args) { // TODO Auto-generated method stub int f[] =new int [10]; for (int i=0; i<f.length; i++) { f[i]= (int) (Math.random()*(10-0)+1)+0); } for (int i=0; i<f.length;i++) { System.out.print(f[i]+""); } } }