#define MAX 10 int main(void) { int i, total; total = 0; for (i = 1; i <= MAX; i++) { total += i; } printf("total = %d\n", total); return 0; }