C Program For Alphabet Digit Whitespace graphic character

#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("Enter any character: ");
ch=getchar();
if((ch>='A'&&ch<='Z')||(ch>='a'&&ch<='z'))
printf("Alphabet");
else if((ch>='0'&&ch<='9'))
printf("Digit");
else if(ch==' '||ch=='\n'||ch=='\t')
printf("white space ");
else
printf("Graphic character");
getch();
}
Bhanu Namikaze

Bhanu Namikaze is an Ethical Hacker, Web Developer, Student and Mechanical Engineer. He Enjoys writing articles, Blogging, Solving Errors and Social Networking. Feel Free to let me know any of your concerns about hacking or let me know if you need any more methods on hacking anything. Enjoy Learning

No comments:

Post a Comment