c programming with arrays and pointers : i am coding one of my assignments but I cannot get right answer, it is asked to get even numbers using pointers of arr[100];
please can you find what is incorrect

int main()
{

	int ar[100],*i,*j,n=0,even,*peven=&even;
	scanf("%d",&n);
	for(i=ar;i<ar+n;i++)
	{
		scanf("%d",ar+n);
	}
	for(i=ar;i<ar+n;i++)
	{
		*peven=0;
		for(j=ar;j<ar+n;j++)
		{
			if((*ar+n)%2==0)
			{
				(*peven)++;
			}
		}
		printf("%d",*peven);

	}
	
	return 0;
}