-
-
Save hikilaka/15def0c2d5c2d2a897ef4d7640835f3c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define CHAR_W 3 | |
#define CHAR_H 5 | |
int CHAR_TBL[CHAR_H][CHAR_W] = { | |
{ 0, 1, 0 }, | |
{ 1, 0, 1 }, | |
{ 1, 1, 1 }, | |
{ 1, 0, 1 }, | |
{ 1, 0, 1 }, | |
}; | |
int main() { | |
for (int y = 0; y < CHAR_H; y++) { | |
for (int x = 0; x < CHAR_W; x++) { | |
int set = CHAR_TBL[y][x]; | |
printf("%c", set ? '#' : ' '); | |
} | |
printf("\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment