is this what you are looking for?
#include <stdio.h>
#include <stdlib.h>
/* static bits default to zero, so we get seven flip-flops */
int main(void) {
static char a, b, c, d, e, f, g;
start:
puts("Hello World!");
/* increment binary counter in bits a…g */
a = !a;
if (!a) {
b = !b;
if (!b) {
c = !c;
if (!c) {
d = !d;
if (!d) {
e = !e;
if (!e) {
f = !f;
if (!f) {
g = !g;
}
}
}
}
}
}
/* when bits form 1100100₂ (one-hundred), exit */
if (g && f && !e && !d && c && !b && !a)
exit(EXIT_SUCCESS);
goto start;
}