Character is UPPER-case , LOWER-case , Numeric or Symbol

/*Write a program to find that the Character is UPPER-case , LOWER-case , Numeric or Symbol */

#include<stdio.h>
#include<conio.h>
void main()
{
char ch ;
clrscr();
printf("\n Enter a Character");
scanf("%c",&ch);
if((ch>='A')&&(ch<='Z'))
printf("\n Character %c is UPPER case Alphabet",ch);

 elseif((ch>='a')&&(ch<='z'))
 printf("\n Character %c is LOWER case Alphabet",ch);

  else if((ch>='0')&&(ch<='9'))
  printf("\n Character %c is NUMERIC Character",ch);
 
   else
   printf("\n Character %c is Symbol ",ch);

getch();
}

Who's online

We have 4 guests and no members online

About Us

Harsimran Singh

Hello

This website is a special gift for Programming Lovers , which want to learn basic Programming Languages and want to develop there skills Read More....

Our work

Find Us

This email address is being protected from spambots. You need JavaScript enabled to view it.

Harsimran Singh(Facebook)

Harsimran Singh(about.me)

Harsimran Singh(G+)