Computer Science, asked by laiban123456, 9 months ago

Write a program that traverses an array and separates its odd and even integers in two separate arrays

Answers

Answered by adityasrivastava6578
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