Skip to content

Instantly share code, notes, and snippets.

@stevenanthonyrevo
Created February 10, 2024 01:07
Show Gist options
  • Select an option

  • Save stevenanthonyrevo/97fa9e204d2cd2c64de20bc83150c210 to your computer and use it in GitHub Desktop.

Select an option

Save stevenanthonyrevo/97fa9e204d2cd2c64de20bc83150c210 to your computer and use it in GitHub Desktop.
ASCII Art written in C.
#include <stdio.h>
int main() {
char pizzaFontWidth[21];
char pizzaFontHeight[5];
for (int i = 0; i < 21; i++) {
if (i == 7) {
printf("%s", "_");
} else {
printf("%s", " ");
}
}
printf("\n");
for (int i = 0; i <= 21; i++){
if (i == 1 || i == 3 || i == 4 || i == 7 || i == 9 || i == 10 || i == 11 || i == 12 || i == 13 || i == 14 || i == 15 || i == 16 || i == 17 || i == 18 || i == 20 ) {
printf("%s", "_");
} else {
if (i == 6 || i == 8) {
if (i == 6 ) {
printf("%s", "(");
} else if (i == 8) {
printf("%s", ")");
} else {
printf("%s", " ");
}
} else {
printf("%s", " ");
}
}
}
printf("\n");
for (int i = 0; i <= 21; i++){
if (i == 5) {
printf("%s", "\\");
}
else
{
if (i == 0 || i == 6 || i == 8 || i == 21) {
printf("%s", "|");
} else if (i == 2) {
printf("%s", "'");
} else if (i == 3 || i == 9 || i == 13 || i == 18) {
printf("%s", "_");
} else if (i == 12 || i == 16) {
printf("%s", "/");
} else if (i == 19) {
printf("%s", "`");
}
else
{
printf("%s", " ");
}
}
}
printf("\n");
for (int i = 0; i <= 21; i++){
if (i == 0 || i == 2 || i == 8 || i == 21) {
printf("%s", "|");
} else {
if (i == 4) {
printf("%s", ")");
} else if (i == 3) {
printf("%s", "_");
} else if (i == 9 || i == 11 || i == 13 || i == 15) {
printf("%s", "/");
} else if (i == 17) {
printf("%s", "(");
}
else if (i == 18) {
printf("%s", "_");
}
else if (i == 19) {
printf("%s", "|");
}
else
{
printf("%s", " ");
}
}
}
printf("\n");
for (int i = 0; i <= 21; i++){
if (i == 0 || i == 6 || i == 21) {
printf("%s", "|");
} else {
if (i == 2) {
printf("%s", ".");
}
else
{
if (i == 5 || i == 8 || i == 12) {
printf("%s", "/");
} else {
if (i == 3 || i == 4 || i == 7 || i == 9 || i == 10 || i == 11 || i == 12 || i == 13 || i == 14 || i == 15 || i == 16 || i == 17 || i == 18 || i == 19 || i == 20 ) {
if (i == 16) {
printf("%s", "\\");
} else if (i == 12) {
printf("%s", "/");
} else if (i == 19) {
printf("%s", ",");
} else {
printf("%s", "_");
}
} else {
printf("%s", " ");
}
}
}
}
}
printf("\n");
for (int i = 0; i <= 21; i++){
if (i == 0 || i == 2) {
printf("%s", "|");
} else {
if (i == 1 ) {
printf("%s", "_");
} else {
printf("%s", " ");
}
}
}
printf("\n");
printf("\n");
}
// _
// _ __ (_)__________ _
// | '_ \| |_ /_ / _` |
// | |_) | |/ / / / (_| |
// | .__/|_/___/___\__,_|
// |_|
//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment