program for check upper case lower case and number insert by the user

#include<stdio.h>

int main()
{
   char ch;

   printf("\nEnter The Character,number,special symbol : ");
   scanf("%c", &ch);
   if (ch >= 65 && ch <= 90)
     {
      printf("Character is Upper Case Letters");
     }
    else if(ch >= 97 && ch <= 122)
     {
      printf("Character is lower Case Letters");
     }
     else if(ch >= 48 && ch <= 57)
    {
      printf("this is a number");
    }
    else
    {
     printf("this is a special symbol");
    }
}

Comments

Popular posts from this blog

BYTE STUFFING PROGRAM USING C

Rotate a matrix 270 degree AntiClockWise

Finding the length of connected cells of 1's (regions) in an matrix of 1's and 0's