// lowercase to uppercase string C (manual) #include <stdio.h> void uppercase(char s[]); // function prototype int main() { char text[] = "lowercase to uppercase"; uppercase(text); printf("%s\n", text); return 0; } //writing the function here void uppercase(char s[]){ for (int i = 0; s[i] != '\0'; i++){ if (s[i] >= 97 && s[i] <= 122){ s[i] = s[i] - 32; } } } #include <stdio.h> int main() { char ch = 'k'; if(ch >= 'a' && ch <= 'z') { printf("%c is lower case\n", ch); } else if(ch >= 'A' && ch <= 'Z') { printf("%c is upper case\n", ch); } return 0; } #include<stdio.h> #include<conio.h> int main() { char lowerChar, upperChar; int ascii; printf("Enter a lowercase Character: "); scanf("%c", &lowerChar); ascii = lowerChar; upperChar = ascii-32; printf("\nIts Uppercase = %c", upperChar); getch(); return 0; }// uppercase to lowercase string C (manual) #include <stdio.h> void lowercase(char s[]); // function prototype int main() { char text[] = "UPPERCASE TO LOWERCASE"; lowercase(text); printf("%s\n", text); return 0; } //writing the function here void lowercase(char s[]){ for (int i = 0; s[i] != '\0'; i++){ if (s[i] >= 65 && s[i] <= 90){ s[i] = s[i] + 32; } } }