#include "Tutor.h" int callCount; /* Increase the 'callCount' variable by one. */ void NextCounter(void) { callCount += 1; } /* Increase the 'callCount' variable. */ /* Get and print the associated Fibonacci number. */ void DoForegroundProcess(void) { unsigned int fib; NextCounter(); fib = GetFib(callCount); PutFib(fib); } /* Main program. */ /* Prints the Fibonacci sequence. */ void main(void) { callCount = 0; InitFib(); while (callCount < MAX_FIB) { DoForegroundProcess(); } }