ads

Sunday, 28 August 2016

C PROGRAM TO FIND WHEATHER THE CHARACTER IS ALPHABET OR DIGIT OR SPECIAL SYMBOL

#include<stdio.h>
#include<conio.h>
void main()
{
 char a;
 printf("enter the character:");
 scanf("%c",&a);
 if(a>='a'&&a<='z')
 printf("entered character is alphabet");
 else if(a>='0'&&a<='9')
 printf("enter character is digit");
 else
 printf("enter character is special symbol");
 getch();
}

No comments:

Post a Comment