                          Computer Science 101
                               Quiz 6      Name ______________________

   int sum;        // the sum of the single digit numbers
   int value;      // the value just read
   int howmany;    // howmany values were read

1  sum = 0;
2  howmany = fscanf(stdin, "%d", &value);

3  while (howmany == 1)
   {
4     if (value > 4)
5       sum = sum + value;
6     howmany = fscanf(stdin, "%d", &value);
   }

7  fprintf(stdout, "The sum was %d \n", sum);

Suppose the input to this program is 5 1 6

Complete the execution trace table. Write the line number of EVERY
statement that is executed EVEN IF the statement only tests but doesn't
modify a variable. Write the new value of a variable in the appropriate
column each time the variable is updated.  DO NOT write the value of any
variable that doesn't change.  A correct solution will occupy all lines.

Code
Line #     sum          value          howmany
----------------------------------------------
  1         0             ?             ?
----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------

----------------------------------------------
