/* total.c | Jim M | Sep 2010 * simple class example * * $ gcc total.c -o total * $ ./total * Total of integers from 17 to 203 is 20570. */ #include int main(){ int i; int low = 17; int high = 203; int total = 0; for (i = low; i <= high; i++){ total += i; } printf("Total of integers from %i to %i is %i.\n", low, high, total); return 0; }