Thanks to @angch, this is my simple task for everyone on here.
Guess what is it? Print "2023" characters (minimum 50 columns x 10 rows) the creative way.
Since everyone use different programming language, compilers & interpreters, it is difficult to assess your work by size of program, lines of code, or execution speed. So your work will be judged by its creativity of generating the "2023" big characters on screen (or on webpage).
Example:
Some suggestions on how to print "2023" the creative way.
1) Store the 50x10 characters in compressed format, and expand it when printing out
2) Convert from image (B/W, etc) to ASCII art containing "2023"
3) Read system's font information (8x8, etc), and expand each pixel to larger size when printing out
4) Print "2023" as it is (the least creative way )
You can do like below, but it will be the least creative.
CODE
#include <stdio.h>
int main()
{
printf(" ** ******* ** ******* \r\n");
printf(" ** ** ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** ** \r\n");
printf(" ******* ******* ******* **** \r\n");
return 0;
}
int main()
{
printf(" ** ******* ** ******* \r\n");
printf(" ** ** ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** \r\n");
printf(" ** ** ** ** ** ** \r\n");
printf(" ******* ******* ******* **** \r\n");
return 0;
}
You can do it with web programming, console app programming, or DOS programming.
Since it is difficult to judge when printing "2023" as picture, this coding challenge is limited to "2023" in characters-based output.
This post has been edited by FlierMate: Nov 23 2022, 01:30 AM