4 * Purpose: to sum the integers from stdin
5 * Author: pc2@ecs.csus.edu or http://www.ecs.csus.edu/pc2
7 * Thu Oct 2 20:27:08 PDT 2003
9 * $Id: isumit.c,v 1.1 2005/03/06 05:34:39 laned Exp $
15 #define INFILENAME "sumit.dat"
22 while (1==fscanf(stdin
, "%d", &i
))
26 printf("The sum of the positive integers is %d \n",sum
);
30 /* eof isumit.c $Id: isumit.c,v 1.1 2005/03/06 05:34:39 laned Exp $ */