#include <stdio.h>
#include <string.h>

int main() {
    char str[100];

    // Input a string from the user
    printf("Enter a string: ");
    fgets(str, sizeof(str), stdin);

    // Remove newline character from the string if present
    str[strcspn(str, "\n")] = '\0';

    // Convert the string to lowercase
    tolower(str);

    // Print the converted string
    printf("Lowercase string: %s\n", str);

    return 0;
}
