Skip to main content
1 of 5
luser droog
  • 4.9k
  • 2
  • 36
  • 61

C 83

 n,x;main(){for(;x<4;x++){for(n=0;n<16;n++)putchar((n&(1<<x))?49:48);putchar(10);}}

Pretty straightforward.

n,x;
main(){
    for(;x<4;x++){
        for(n=0;n<16;n++)
            putchar((n&(1<<x))?49:48);
        putchar(10);
    }   
}
luser droog
  • 4.9k
  • 2
  • 36
  • 61