#include void print_in_lower_case(char string[]) { int cursor = 0; while(string[cursor] != '\0') { if(string[cursor] >= 'A' && string[cursor] <= 'Z') { /* Add 32. 32 is the difference in ASCII codes between ** lower case and upper case characters */ string[cursor] += 32; } cursor++; } printf("%s", string); } int main() { char string1[80]; /* Read a string from the user (will include newline) */ printf("Enter string: "); fgets(string1, 80, stdin); print_in_lower_case(string1); return 0; }