Math, asked by sohinichakraborty67, 4 months ago

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 yashmahadik744
0

Answer:

b[ ] = { 12 , 3 , 15 , 9 , 7}

c[ ] = { 1 , 8 , 6 , 2 , 4 }

Similar questions