#include<stdio.h>
char strlwr(char s[50]);

main()
{ char a[50];
  printf("Enter a string\n");
  gets(a);
  strlwr(a);
  printf("The Converted string is\n");
  puts(a);

}
char strlwr(char s[50])
 { 
  int i=0; 
 while(s[i]!='\0') 
 { 
  if(s[i]>=65&&s[i]<=90) 
 { s[i]=s[i]+32; 
  } 
  i++; 
  } 
 return s;
}
     
           
Note: Need to be arranged in compiler after copied
   

 OutPut: