-
-
Save parzibyte/dd1c81e42f328ac7afaa480af7987b2a to your computer and use it in GitHub Desktop.
This file contains 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
void imprimir_bosque(char bosque[medidaGlobalBosque][medidaGlobalBosque]) { | |
int contador = 0; | |
// Un separador | |
printf("\n\n"); | |
while (contador < medidaGlobalBosque) { | |
printf("_____"); | |
contador++; | |
} | |
printf("\n"); | |
// Letras | |
printf("| "); | |
char c = 'A'; | |
contador = 0; | |
while (contador < medidaGlobalBosque) { | |
printf("| %c ", c); | |
c++; | |
contador++; | |
} | |
printf("|\n"); | |
for (int y = 0; y < medidaGlobalBosque; y++) { | |
printf("| %d |", y + 1); | |
for (int x = 0; x < medidaGlobalBosque; x++) { | |
printf(" %c |", bosque[y][x]); | |
} | |
printf("\n"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment