In this tutorial, we will be learning how to write a C program to check whether a given character is uppercase or lowercase using if-else. Also, We will see examples and algorithms for a better understanding of the problem.Problem StatementWrite a C program that checks whether a given character is uppercase or lowercase. Here Program will take a character as input. If the Given character is in the uppercase output should printed as "The character is uppercase". And if the Given character is in lowercase, the output should be printed as "The character is lowercase".ExamplesEnter a character: AOutput: The character A is uppercase.Enter a character: bOutput: The character b is lowercase.Enter a character: 7Output: Input is invalidIn the below program we are using if else statement of the C programmingAlgorithm- Start the program.- Declare a variable character of type char to store the input character.- Prompt the user to enter a character by printing the message "Enter a character: ".- Read the input character from the user and store it in the character variable using scanf().- Use an if-else statement to check the case of the input character:- If character is between 'A' and 'Z', print the message "The character is uppercase."- If character is between 'a' and 'z', print the message "The character is lowercase."- Otherwise, print the message "The input is invalid"- End the program.Program to check whether a given character is uppercase or lowercase #include int main() { char character; printf("Enter a character: "); scanf(" %c", &character); if (character >= 'A' && character = 'a' && character- The program starts by including the necessary header file- The- Inside the- The program prompts the user to enter a character by printing the message "Enter a character: ".- The- An if-else statement is used to check the case of the input character:- The condition = 'A' && character- If the character is uppercase, it prints the message "The character is uppercase." The- The condition = 'a' && character- If the character is lowercase, it prints the message "The character is lowercase."- If the character is neither uppercase nor lowercase, it prints the message "The character is neither uppercase nor lowercase."- The












