C Program Convert String Lower Case

By | March 12, 2020

C Program Convert String Lower Case

/* C Program to convert
 given string into lower case
*/

#include <stdio.h>
#include <string.h>

int main()
{
   char str[100];
   
   printf("Please, input a string to convert to lower case\n");
   gets(str);
   
   printf("The string in lower case is: %s\n", strlwr(str));
   
   return  0;
}

Output

Please, input a string to convert to lower case
Easy Code Book
The string in lower case is: easy code book

Leave a Reply

Your email address will not be published. Required fields are marked *