This assignment was graded out of 40 points.
Parts 1 and 2 were 5 pints each. Parts 3 and 4 were 15 points each.
for (i=atoi(argv[1];i<=atoi(argv[2];i++) {
...
}
One solution is to create another process whose only purpose it to read from the pipe.