char a[5][6] = {
{0xe,0x6,0x8,0x6,0x7,0xe},
{0x9,0x9,0x8,0x9,0x2,0x4},
{0xe,0xf,0x8,0xf,0x2,0x4},
{0x9,0x9,0x8,0x9,0xa,0x4},
{0xe,0x9,0xe,0x9,0x4,0xe}
};
m[4]={0x8,0x4,0x2,0x1};
int main()
{
int i,j,k;
do
{
j=0;
do
{
k=0;
do
{
(a[i][j]&m[k])?printf("#"):printf(" ");
}while(++k<4);
printf(" ");
}while(++j<6);
printf("\n");
}while(++i<5);
}
Friday, July 13, 2007
Interesting C Program -11
Want to know my name?
Labels:
INTERESTING C PROGRAMS
Subscribe to:
Post Comments (Atom)
Search Google
Books that I refer to...
- The Complete Reference C, Fourth Edition
- The C Programming Language
No comments:
Post a Comment