Program output

Figure 1 shows the program output for a typical input file.

As you can see, the order of the values in the output file are reversed relative to the order of the values in the input file.

Also, the average value of the middle three values is computed by discarding the first and the last of the five values read from the input file.