-
-
Save parzibyte/96afdea62ea11543e936de464bebe549 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
#include <stdio.h> | |
#include <ctype.h> | |
int main(int argc, char const *argv[]) | |
{ | |
char cadena[] = "Hola Mundo, esto va a ser convertido a MINUSCULA. Parzibyte.Me"; | |
printf("Cadena original: %s\n", cadena); | |
// Convertir cada char a minúscula | |
// usando tolower | |
for (int indice = 0; cadena[indice] != '\0'; ++indice){ | |
cadena[indice] = tolower(cadena[indice]); | |
} | |
printf("Cadena despues de ser convertida: %s\n", cadena); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment