#include<stdio.h>
main()
{
    char s[50];
    int i;
    printf("enter a string");
    gets(s);
    i=0;
    while(s[i]!='\0')
    {
        if(s[i]>=65&&s[i]<=90)
        {
            s[i]=s[i]+32;
        }
        i++;
    }
    printf("the string in lower case letters is:");
    puts(s);
}
     
           
Note: Need to be arranged in compiler after copied
   

 OutPut:

enter a string COMPUTER the string in lower case letters is:computer