DEV/DEV1.1/partie_1/base.c

17 lines
317 B
C
Raw Permalink Normal View History

#include <stdio.h>
#include <stdlib.h>
int main(void) {
int n = 12;
printf("%d", (n>>7)&1);
printf("%d", (n>>6)&1);
printf("%d", (n>>5)&1);
printf("%d", (n>>4)&1);
printf("%d", (n>>3)&1);
printf("%d", (n>>2)&1);
printf("%d", (n>>1)&1);
printf("%d", n&1);
printf("\n");
return EXIT_SUCCESS;
}