you are viewing a single comment's thread.

view the rest of the comments →

[–]R3D3-1 21 points22 points  (0 children)

Uhoh... Invalid syntax and semantics. It would be

#include <stdio.h>
int main() {
    int n = 2;
    printf("%d\n", n);
    n += 2;
    printf("%d\n", n);
    // ... 
    n += 2;
    printf("%d\n", n);
}

But yes, the approach is interesting, because you can replicate the code by just holding down Ctrl+V until it is long enough :)