

    #include <stdio.h>
    int main ()
    {
        float sum = 0;  /* sum of the employee hours */

        for (int idx = 1; idx < 5; ++idx) {
            float hours; /* hours worked in a given week */

            printf("Enter Hours Worked: ");
            scanf ("%f", &hours);
            sum += hours; /* calculate sum of hours */
        } /* end for */

        printf ("\n Total sum of hours is %6.2f \n", sum);

        /* if you try to reference the variables idx or hours here, you'll get an error */

        return (0);

    } /* end main */
