int[] arr = new int [50];for (int i =1;i<101;i++){ int j=i/2-1; if (i%2==0){ arr[j]=i; }}for (int i=0;i System.out.println(arr[i]);}