#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("\nEnter a character:");
scanf("%c",&ch);
if((ch>='A' && ch<='Z') || (ch>='a' && ch<='z'))
printf("is an Alphabet");
else if (ch>='0' && ch<='9')
printf("Its numeric");
else
printf("Its a special character");
getch();
}
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("\nEnter a character:");
scanf("%c",&ch);
if((ch>='A' && ch<='Z') || (ch>='a' && ch<='z'))
printf("is an Alphabet");
else if (ch>='0' && ch<='9')
printf("Its numeric");
else
printf("Its a special character");
getch();
}
No comments:
Post a Comment