Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
int longitud = sizeof(nombres) / sizeof(nombres[0]);
int longitudFija = -25;
printf("Nombres alineados con variable\n\n");
for (int x = 0; x < longitud; x++) {
printf("|%*s|\n", longitudFija, nombres[x]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment