Final product... (dont mind the commenting; the professor wanted that stuff.)
--------------------------------------------------------
#include <stdio.h>
/* variable declarations */
double func();
double h, sum;
int i, n;
main()
{
/* prompt the user for the number of...