Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[] a= {0,5,2,4,7,1,3,19};
- int[] b= new int[a.length-3];
- System.arraycopy(a, 1, b, 0, a.length-3);
- for (int i=0; i<a.length; i++) {
- if (a[i] % 2 != 0) {
- System.out.print("Ко-во непарных чисел - " + b.length);
- break;
- }
- }
Add Comment
Please, Sign In to add comment