Re: Aufgaben und Übungen,

#include <stdio.h>

int main (void) {
    int i;
    int j;
    int k, l;
    int v = 0;

    for (k = 0, l = 1;  k < 4;  k++, l = l*2) {
        printf ("a%i <= ", k);
        for (j = 1, i = 0, v = 0;  i < 150;  i+=10, j++) {
            printf ("'%i' after %i ns, ", v, i);
            if ((j % l) == 0) {
                v = (v + 1) % 2;
            }
        }
        j = j%2;
        printf ("'%i' after %i ns;nn", v, i);
    }

return 0;
}