Write a program that traverses an array and separates its odd and even integers in two separate arrays
Answers
Answered by
0
Answer:
C program to separate even and odd numbers from an array
One array with few numbers are given.
First create two more array to store odd and even numbers.
Run one loop and check for each number if it is divisible by 2 or not.
If yes, put it in the array for even numbers. Else, put it in the array for odd numbers.
Print out the odd and even numbers arrays.
Similar questions
Math,
4 months ago
Chemistry,
4 months ago
Psychology,
9 months ago
English,
9 months ago
Math,
1 year ago