Quick actions

cmd+k|ctrl+k

Navigation

Languages

even

Snippet info

Language

C

Visibility

public

Author

sriram

Created

2022-12-21T14:55:09.993665Z

Updated

2022-12-21T14:55:43.053201Z

#include <stdio.h>

int main()
{
{
    int i,j=0,n,a[10],b[10];
    printf("enter the size\n");
    scanf("%d",&n);
    for(i=0;i<n;i++)
    scanf("\n%d",&a[i]);

    printf("\nthe array elments are\n");
   for(i=0;i<n;i++)
    printf("%d\n",a[i]);
    {
    for(i=0;i<n;i++)
{
if(a[i] % 2 ==0)
  b[j] = a[i];
  j++;

}
printf("The of Even values is: %d \t",b[j]);
    }
}
}


INFO