#define LOWER 0 /* lower limit of table */
#define UPPER 300 /* upper limit */
#define STEP 20 /* step size */
/* print Fahrenheit-Celsius table */
for (fahr = LOWER; fahr <= UPPER; fahr = fahr + STEP)
printf("%3d %6.1f\n", fahr, (5.0/9.0)*(fahr-32));
Using Symbolic Constraints we are not throwing magic numbers into the program. This method makes it a lot easier to hand this code off to another programmer he can jump right into editing it even without a synopsis of what it does. Not nearly as complicated as the encryption program but this is where I am at so its cool. I am almost on chapter two of my C Programming book!