C Program Convert String Upper Case

By | March 12, 2020

C Program Convert String Upper 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 UPPER CASE
Easy Code Book Perfect Programming Tutorials
The string in UPPER CASE is: EASY CODE BOOK PERFECT PROGRAMMING TUTORIALS

 

 162 total views,  1 views today

Leave a Reply

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