C Program to Convert Uppercase String to Lowercase
In this program, we will take an upper case string as input from user and convert that into lowercase string
- //C program to convert string from upper case to lower case
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- char str[50];
- int i;
- printf("Enter the string: ");
- scanf("%s",str);
-
- for(i=0;i<=strlen(str);i++){
- if(str[i]>=65&&str[i]<=90)
- str[i]=str[i]+32;
- }
- printf("\nLower Case is: %s",str);
- return 0;
- }
Output

Solution not working or have any suggestions? Please send an email to [email protected]
Download Android App