I intended that as a "sample" to illustrate a case where knowledge
would make it trivial, but use of the book will only help partially.
But here is the variant of that that I used in the mid-term (9 weeks
into the class) THIS semester. The primary thing being tested in
this "trivial" exercise is whether they understand whether the
increment occurs before or after the body of the loop. NO, it
is NOT the whole test!
8. Draw out EXACTLY what the following program will display.
#include <stdio.h>
main()
{ int x=8;
while (x++<=13) printf("%4d%4d\n",x,x+x); }