#include <iostream.h>
#include <conio.h>
void main()
{
int i,j,x[4][4],d,c2=4,s=0,p=0;
cout<<"Ingrese la matriz: ";
for(i=0;i<4;i++)
{
d=10;
c2=c2+2;
for(j=0;j<4;j++)
{
gotoxy(d,c2);cin>>x[i][j];
d=d+5;
if((x[i][j]%2)==0)
s=s+1;
else
p=p+1;
}
}
gotoxy(10,16);cout<<"El total de pares son: "<<s;
gotoxy(10,18);cout<<"El total de impares son: "<<p;
getch();
}