#include <stdio.h> int main(void) { unsigned u = 100; int n; for(n = 32768; n; n = n >> 1) if(u & n) printf("1 "); else printf("0 "); printf("\n"); return 0; }