#include <stdio.h> /* for input/output */

main() {
  int x=10;
  printf("Lab Session 2, Question 4.1\n"); /* Display program header */
  while(--x) {
    printf("%f\n",(float)5/x);
  }
}

/* OUTPUT:
0.555556
0.625000
0.714286
0.833333
1.000000
1.250000
1.666667
2.500000
5.000000
 */

/* ANSWER:
what it does: start at 9 and count down to 1, displaying five divided
by the number for each step of the way.

float statement: to cast the 5/x as a float result, otherwise it would
be trying to do it as an integer calculation which would be a lot less
accurate (and which the %f specifier would not interpret correctly).

stop: the loop stops executing when x reaches 0, since it is reduced
by one before each loop.

 */
