6 deleted 1 characters in body
source | link

C - 164 153151 characters horizontal

On IDEone: http://ideone.com/gljc3

The code (164 bytes):

i,j;main(){char n[99];gets(n);for(;j<5;++j){for(i=0;n[i];++i)printf("%.4s ","#####  # ##   #  ### #     #"+4*("01110233340135006460"[(n[i]-48)*5+j]-48));puts("");}}

enter image description here

EDIT - 153151 bytes

I added the suggestions from the comments and then some. It isn't exactly safe (0-length array that I gets() in to...) though.

char i,j=5,n[];main(){for(gets(n);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4#"+4*(0x1A600BA136E0248>>15*n[i++]-192720+3*j&7)));}

Note, i=puts("") is undefined behavior since I'm treating void as int! It consistently returns 0 on my version of MinGW, but it returns 1 on the compiler IDEOne uses.

Accepts decimal, outputs base 4 (169167 bytes)

char i,j=5,n[];main(p){for(itoa(atoi(gets(n)),n,4);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4#"+4*(0x1A600BA136E0248>>15*n[i++]-192720+3*j&7)));}

C - 164 153 characters horizontal

On IDEone: http://ideone.com/gljc3

The code (164 bytes):

i,j;main(){char n[99];gets(n);for(;j<5;++j){for(i=0;n[i];++i)printf("%.4s ","#####  # ##   #  ### #     #"+4*("01110233340135006460"[(n[i]-48)*5+j]-48));puts("");}}

enter image description here

EDIT - 153 bytes

I added the suggestions from the comments and then some. It isn't exactly safe (0-length array that I gets() in to...) though.

char i,j=5,n[];main(){for(gets(n);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4-192));}

Note, i=puts("") is undefined behavior since I'm treating void as int! It consistently returns 0 on my version of MinGW, but it returns 1 on the compiler IDEOne uses.

Accepts decimal, outputs base 4 (169 bytes)

char i,j=5,n[];main(){for(itoa(atoi(gets(n)),n,4);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4-192));}

C - 164 151 characters horizontal

On IDEone: http://ideone.com/gljc3

The code (164 bytes):

i,j;main(){char n[99];gets(n);for(;j<5;++j){for(i=0;n[i];++i)printf("%.4s ","#####  # ##   #  ### #     #"+4*("01110233340135006460"[(n[i]-48)*5+j]-48));puts("");}}

enter image description here

EDIT - 151 bytes

I added the suggestions from the comments and then some. It isn't exactly safe (0-length array that I gets() in to...) though.

char i,j=5,n[];main(){for(gets(n);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+4*(0x1A600BA136E0248>>15*n[i++]-720+3*j&7)));}

Note, i=puts("") is undefined behavior since I'm treating void as int! It consistently returns 0 on my version of MinGW, but it returns 1 on the compiler IDEOne uses.

Accepts decimal, outputs base 4 (167 bytes)

char i,j=5,n[];main(p){for(itoa(atoi(gets(n)),n,4);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+4*(0x1A600BA136E0248>>15*n[i++]-720+3*j&7)));}
5 added 226 characters in body
source | link

C - 164 153 characters horizontal

On IDEone: http://ideone.com/gljc3

The code (164 bytes):

i,j;main(){char n[99];gets(n);for(;j<5;++j){for(i=0;n[i];++i)printf("%.4s ","#####  # ##   #  ### #     #"+4*("01110233340135006460"[(n[i]-48)*5+j]-48));puts("");}}

enter image description here

EDIT - 153 bytes

I added the suggestions from the comments and then some. It isn't exactly safe (0-length array that I gets() in to...) though.

char i,j=5,n[];main(){for(gets(n);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4-192));}

Note, i=puts("") is undefined behavior since I'm treating void as int! It consistently returns 0 on my version of MinGW, but it returns 1 on the compiler IDEOne uses.

Accepts decimal, outputs base 4 (169 bytes)

char i,j=5,n[];main(){for(itoa(atoi(gets(n)),n,4);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4-192));}

C - 164 153 characters horizontal

On IDEone: http://ideone.com/gljc3

The code (164 bytes):

i,j;main(){char n[99];gets(n);for(;j<5;++j){for(i=0;n[i];++i)printf("%.4s ","#####  # ##   #  ### #     #"+4*("01110233340135006460"[(n[i]-48)*5+j]-48));puts("");}}

enter image description here

EDIT - 153 bytes

I added the suggestions from the comments and then some. It isn't exactly safe (0-length array that I gets() in to...) though.

char i,j=5,n[];main(){for(gets(n);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4-192));}

Note, i=puts("") is undefined behavior since I'm treating void as int! It consistently returns 0 on my version of MinGW, but it returns 1 on the compiler IDEOne uses.

C - 164 153 characters horizontal

On IDEone: http://ideone.com/gljc3

The code (164 bytes):

i,j;main(){char n[99];gets(n);for(;j<5;++j){for(i=0;n[i];++i)printf("%.4s ","#####  # ##   #  ### #     #"+4*("01110233340135006460"[(n[i]-48)*5+j]-48));puts("");}}

enter image description here

EDIT - 153 bytes

I added the suggestions from the comments and then some. It isn't exactly safe (0-length array that I gets() in to...) though.

char i,j=5,n[];main(){for(gets(n);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4-192));}

Note, i=puts("") is undefined behavior since I'm treating void as int! It consistently returns 0 on my version of MinGW, but it returns 1 on the compiler IDEOne uses.

Accepts decimal, outputs base 4 (169 bytes)

char i,j=5,n[];main(){for(itoa(atoi(gets(n)),n,4);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4-192));}
4 added 351 characters in body
source | link

C - 164 153 characters horizontal

On IDEone: http://ideone.com/gljc3

The code (164 bytes):

i,j;main(){char n[99];gets(n);for(;j<5;++j){for(i=0;n[i];++i)printf("%.4s ","#####  # ##   #  ### #     #"+4*("01110233340135006460"[(n[i]-48)*5+j]-48));puts("");}}

enter image description here

EDIT - 153 bytes

I added the suggestions from the comments and then some. It isn't exactly safe (0-length array that I gets() in to...) though.

char i,j=5,n[];main(){for(gets(n);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4-192));}

Note, i=puts("") is undefined behavior since I'm treating void as int! It consistently returns 0 on my version of MinGW, but it returns 1 on the compiler IDEOne uses.

C - 164 153 characters horizontal

On IDEone: http://ideone.com/gljc3

The code (164 bytes):

i,j;main(){char n[99];gets(n);for(;j<5;++j){for(i=0;n[i];++i)printf("%.4s ","#####  # ##   #  ### #     #"+4*("01110233340135006460"[(n[i]-48)*5+j]-48));puts("");}}

enter image description here

EDIT - 153 bytes

I added the suggestions from the comments and then some. It isn't exactly safe (0-length array that I gets() in to...) though.

char i,j=5,n[];main(){for(gets(n);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4-192));}

C - 164 153 characters horizontal

On IDEone: http://ideone.com/gljc3

The code (164 bytes):

i,j;main(){char n[99];gets(n);for(;j<5;++j){for(i=0;n[i];++i)printf("%.4s ","#####  # ##   #  ### #     #"+4*("01110233340135006460"[(n[i]-48)*5+j]-48));puts("");}}

enter image description here

EDIT - 153 bytes

I added the suggestions from the comments and then some. It isn't exactly safe (0-length array that I gets() in to...) though.

char i,j=5,n[];main(){for(gets(n);j--;)for(i=puts("");n[i];printf("%.4s ","#####  # ##   #  ### #     #"+"01110433320531006460"[n[i++]*5-240+j]*4-192));}

Note, i=puts("") is undefined behavior since I'm treating void as int! It consistently returns 0 on my version of MinGW, but it returns 1 on the compiler IDEOne uses.

3 added 351 characters in body
source | link
2 removed !=0
source | link
1
source | link