/*__________________________________________________

   Libro: EMPEZAR DE CERO A PROGRAMAR EN LENGUAJE C
   Ejercicio Propuesto 13.14: Ceros introducidos
                             (Solución 1)

   Web del Autor: http://www.carlospes.com
  __________________________________________________*/

#include <stdio.h>

int main()
{
   int ceros, i, numero;

   ceros = 0;

   for ( i = 1 ; i <= 5 ; i++ )
   {
      printf( "\n   Introduzca numero entero %d: ", i );
      scanf( "%d", &numero );

      while ( numero == 0 )
      {
         ceros++;
         printf( "\n   Introduzca numero entero %d: ", i );
         scanf( "%d", &numero );
      }
   }

   printf( "\n   Ha introducido %d cero(s).", ceros );

   return 0;
}
