

 /*PROGRAMA QUE IMPRIME LOS NUMEROS POSITIVOS ,NULOS, NEGATIVOS*/
 #include<stdio.h>
 #include <conio.h>
 #include<math.h>

 void positivos(int va[],int n)
 {
    int j, c=0;
    printf("LOS ELEMENTOS DEL ARREGLO SON:    \n\n");

    for(j=1;j<=n;j++)
    {
       scanf("%d",&va[j]);
       if(va[j]>0)
       {
	 c=c+1;
       }
   }
   gotoxy(4,19);
   textcolor(6);
   cprintf("EL TOTAL DE POSITIVOS ES:   %d",c);
   getch();
 }

 void negativos(int va[],int n)
 {
   int l,g=0;

   for(l=1;l<=n;l++)
   {
      if(va[l]<0)
      {
	g=g+1;
      }
   }
   textcolor(7);
   gotoxy(4,20);
   cprintf("EL TOTAL DE NEGATIVOS ES:   %d",g);
   getch();
 }

 void nulos(int va[],int n)
 {
    int i,k=0;
    for(i=1;i<=n;i++)
    {
       if(va[i]==0)
       {
	 k=k+1;
       }
    }
    textcolor(14);
    gotoxy(4,21);
    cprintf("EL TOTAL DE NULOS ES:      %d",k);
    getch();
 }

 main()
 {
    int va[20];
    int n;
    clrscr();
    gotoxy(4,2);
    textcolor(15);
    printf("INDICA EL TAMA¥O DEL ARREGLO:");
    scanf("%i",&n);
    positivos(va,n);
    negativos(va,n);
    nulos(va,n);
 }





