#include<stdio.h>
void main()
{
char ch;
printf("Enter a charecter");
scanf("%c",&ch);
if((ch >= 65 && ch <= 90) || (ch >= 97 && ch <= 122))
printf("Entered charector is alphabet");
else if(ch >= 48 && ch <= 57)
printf("Entered charector is digit");
}
void main()
{
char ch;
printf("Enter a charecter");
scanf("%c",&ch);
if((ch >= 65 && ch <= 90) || (ch >= 97 && ch <= 122))
printf("Entered charector is alphabet");
else if(ch >= 48 && ch <= 57)
printf("Entered charector is digit");
}
0 comments: (+add yours?)
Post a Comment