Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 12, 2020 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/5c6ef7177db211f222549993d606abb6 to your computer and use it in GitHub Desktop.
Save parzibyte/5c6ef7177db211f222549993d606abb6 to your computer and use it in GitHub Desktop.
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