/* * File: evencount.c * --------------- * This program counts from 2 to 100, displaying each even number * on the screen. */ #include #include "genlib.h" main() { int i; for (i = 2; i <= 100; i+=2) { printf("%d\n", i); } }