C program to check whether character is lowercase or not using ASCII values

Here is a C program that checks whether a character is lowercase or not using ASCII values:

#include <stdio.h>

int main() {
   char ch;

   printf("Enter a character: ");
   scanf("%c", &ch);

   if (ch >= 'a' && ch <= 'z') {
      printf("The character is lowercase.\n");
   } else {
      printf("The character is not lowercase.\n");
   }

   return 0;
}

This program prompts the user to enter a character and then uses the ASCII values to check whether the character is lowercase or not. If the ASCII value of the character falls between the ASCII values of 'a' and 'z', it is considered lowercase and the program displays a corresponding message. Otherwise, it displays a message indicating that the character is not lowercase.

Hope this helps!