#include <stdio.h>

#define FOR(init, condition, increment, body) \
{ \
    init; \
    while (condition) { \
        int entered = 0; \
        int finished = 0; \
        do { \
            if (finished) { \
                goto more; \
            } \
            if (entered) { \
                goto more; \
            } \
            entered = 1; \
            body \
            finished = 1; \
        } while (1); \
        if (!finished) { \
            goto out; \
        } \
    more: \
        increment; \
    } \
out:; \
}

int main ()
{
    FOR(int i = 0, i < 10, i++, {
        if (i == 4) continue;
        if (i == 6) break;
        printf("%d\n", i);
    })
    
    return 0;
}
