C program to convert string to lower case withotut using inbuilt functions
PROGRAM:
#include <stdio.h>int main()
{
char str[50];
int i=0;
printf("Enter a string to be converted to lowercase\n");
scanf("%s",str);
printf("Entered string is %s\n",str);
while(str[i]!='\0')
{
if(str[i]>='A'&&str[i]<='Z')
{
str[i]=str[i]+32;
}
i++;
}
printf("String converted to lowercase: %s\n",str);
return 0;
}
OUTPUT:
Enter a string to be converted to lowercaseINDIA.IS.GREAT
Entered string is INDIA.IS.GREAT
String converted to lowercase: india.is.great