#include <stdio.h>
#include <conio.h>
int main()
{
int i, j, k, l;
static int data_huruf[3][8][8][8] =
{
{
{1,1,0,0,0,0,0,1},
{1,0,1,0,0,0,0,1},
{1,0,0,1,0,0,0,1},
{1,0,0,0,1,0,0,1},
{1,0,0,0,0,1,0,1},
{1,0,0,0,0,0,1,1},
{1,0,0,0,0,0,0,1},
{1,0,0,0,0,0,0,1},
},
{
{0,0,0,1,1,0,0,0},
{0,0,0,0,0,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
{0,0,0,1,1,0,0,0},
},
{
{0,1,1,1,1,1,0,0},
{0,1,0,0,0,1,0,0},
{0,1,0,0,0,1,0,0},
{1,1,1,1,1,1,1,0},
{1,1,0,0,0,0,1,0},
{1,1,0,0,0,0,1,0},
{1,1,0,0,0,0,1,0},
{0,0,0,0,0,0,0,0},
}
};
/*Tampilkan huruf*/
for (i=0; i<3; i++)
{
for (j=0; j<8; j++)
{
for (k=0; k<8; k++)
{
for (l=0; l<8; l++)
if (data_huruf[i][j][k][l])
putchar('\xDB');
else
putchar(' ');
}
puts("");
}
puts("");
}
getch();
}
Tidak ada komentar:
Posting Komentar