Trace continue, update and break separately

Give the exact output and a trace table with one row for each entered iteration. Include i, sum on entry, which branch is taken, sum on exit and whether the for update executes. Also record the loop's final i.

    Explain why continuing at i=3 does not leave i stuck at 3, why the value that would exceed the limit is not included, and why breaking is different from merely making the next condition false.

#include <stdio.h>
int main(void)
{
    int sum = 0;
    int i;
    for (i = 1; i <= 8; ++i) {
        if (i == 3) {
            continue;
        }
        if (sum + i > 12) {
            break;
        }
        sum += i;
        printf("take=%d sum=%d\n", i, sum);
    }
    printf("end i=%d sum=%d\n", i, sum);
    return 0;
}

