1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include<stdio.h>
int main ()
{
 
 int size,b,i;
 printf("Enter a size of array\n");
 scanf("%d",&size);
 int a[size];
  printf("Enter element of the array=%d\n");
 for(i=0;i<=a[size];i++)
{
  scanf("%d",&a[i]);
 }
for(i=0;i<=a[size];i++)
{
  if(a[i]%2!=0)
  printf("odd number =%d \n",a[i]);
else
  printf("even number =%d\n",a[i]);

 
}
}
If you face any problem so contact me Thank you Contact :- https://www.facebook.com/Teach.Coding

Post a Comment

Protected

Protected by Copyscape
 
Learn Programming © 2017. All Rights Reserved. Shared by S.A.R
Top