Write a program in java to initialize an array with any 10 numbers and create two different arrays with
the numbers in the even position and odd position separately.
Example :
Input :
a[ ] = { 12, 1 , 3 , 8 , 15 , 6 , 9 , 2 , 7 , 4}
Output :
b[ ] = { 12 , 3 , 15 , 9 , 7}
c[ ] = { 1 , 8 , 6 , 2 , 4 }
Answers
Answered by
0
Answer:
b[ ] = { 12 , 3 , 15 , 9 , 7}
c[ ] = { 1 , 8 , 6 , 2 , 4 }
Similar questions