Completed series_sum1.c program