ASCII VALUE.................
#include<stdio.h>
#include<conio.h>
int main()
{
char a;
printf("plz enter the character");
scanf("%c",&a);
if(a>=65&&a<=90)
printf("you entered a captical letter");
if(a>=97&&a<=122)
printf("you entered a small letter");
if(a>=47&&a<=58)
printf("you entered a digit");
if((a>=0 && a<=47) ||( a>=58 && a<=64) ||(a>=91 && a<=96) ||( a>=123 && a<=127));
printf("you entered a special symbol");
getch();
}
No comments:
Post a Comment