Re: Aufgaben und Übungen,

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main (void) {
    int a;
    int b;
    int i;
    time_t t;

    srand ((unsigned) time (\&amp;t));

    a = rand () % 8192;
    printf ("%in", a);
    b = rand () % 8192;
    for (i = 13;  i >= 0;  i--)
        printf ("%i", (b >> i)\&amp;1);
    printf ("n");
return 0;
}

8024
00010010110000

2023
01001001101100

Image 20231119_174636