int main() {
    int i, sum = 0;
    /* for loop */
    for (i = 0; i < 10; i++) sum += i;
    /* while loop */
    while (sum > 0) sum--;
    /* do-while loop */
    do { sum++; } while (sum < 5);
    /* switch with break and default */
    switch (sum) {
        case 5: sum = 10; break;
        default: sum = 0;
    }
    /* continue */
    for (i = 0; i < 5; i++) {
        if (i == 2) continue;
        sum += i;
    }
    /* goto */
    if (sum == 18) goto done;
    sum = 99;
done:
    return 42;
}
