Login to ask a question from Arrays

Write a program in C to separate odd and even integers in separate arrays.

Write a program in C to separate odd and even integers in separate arrays.

#include 
void main()
 {
       int arr1[10], arr2[10], arr3[10];
       int i,j=0,k=0,n;
       printf("\n\nSeparate odd and even integers in separate arrays:\n");
       printf("Input the number of elements to be stored in the array :");
       fflush(stdout);
       scanf("%d",&n);
       printf("Input %d elements in the array :\n",n);
       for(i=0;i....
Show More
Previous Question Next Question
🔗

Similar Questions

From Arrays · C programming

View All
WhatsApp