Write a C program to convert uppercase string to lowercase case string using strlwr() function.
#include <stdio.h>
#include <conio.h>
int main ()
{
char upr[50]; // declare character array
printf (" Enter the upper case string: ");
gets (upr); // use gets() function to take string
// use strlwr() function to change upper case into lower string
printf (" \n The lowercase string is: %s", strlwr(upr));
return 0;
}
Comments
Leave a comment