WAP to check Whether a character entered through the keyboard is a special symbol or not


void main()
{
char no;
clrscr();
printf("Enter the number");
scanf("%c", &no);
(no>=0 && no<=47 || no>=58 && no<=64 || no>=91 && no<=96 || no>=123 && no<=255)?
printf("\n\nIt is a special symbol"):printf("\n\nIt is not a special symbol");
getch();
}

No comments:

Post a Comment