C Program to Convert String into Lowercase

In this program, you'll learn to convert a given string into lowercase letters.

Source Code
int main()
    int i;
    char str[20];

    printf("Enter the string..\n");

    for(i=0; str[i]!= '\0'; i++)
        if(str[i] >= 'A' && str[i] <='Z')
            str[i] = str[i] + 32;
    printf("\nString in LOWERCASE is..\n");
    return 0;
Enter the string..
I am very to learn code!

String in LOWERCASE is..
i am very to learn code!

"Coding Hub - Learn to code" app now available on Google Play Store