बिजनेस मार्केटिंग का लो कॉस्ट फंडा , अपने मोबाइल से ऑटो sms भेजकर मार्केटिंग करे विजिट करे http://autotextsms.com/ बिजनेस मार्केटिंग का लो कॉस्ट फंडा http://autotextsms.com/

Search This Blog

Translate

C Program to print the no of odd and even in an array


C Program to print the no of odd and even in an array 


#include <stdio.h>
int main()
{ int array[100], i, num;
printf("Enter the size of an array \n");
 scanf("%d", &num); printf("Enter the elements of the array \n");
for (i = 0; i < num; i++) { scanf("%d", &array[i]); }
 printf("Even numbers in the array are : ");
 for (i = 0; i < num; i++)
 { if (array[i] % 2 == 0)
{ printf("%d \t", array[i]); } }
printf("\n Odd numbers in the array are :");
for (i = 0; i < num; i++)
 { if (array[i] % 2 != 0)
{ printf("%d \t", array[i]); } }
return 0; }


  • c program to count number of odd and even numbers
  • write a c program to count odd and even numbers from given 10 numbers
  • c program to find sum of even and odd numbers in an array
  • even odd program in c++ using array
  • c program to put even & odd elements of an array in 2 separate arrays
  • c program to find sum of even numbers in an array
  • c++ program to put even & odd elements of an array in 2 separate arrays
  • c++ program to find sum of even and odd numbers in an array


C Program example List