#include <stdio.h> int main() { char ch; printf("Enter character"); scanf("%c",&ch); if(!(ch>='a' && ch<='z'|| ch>='A' && ch<='Z' ||ch>='0' && ch<='9')) { printf("%c is symbol" ,ch); } else { printf("%c is not a symbol", ch); } return 0; }
Enter character @
@ is symbol
Enter character R
R is not a symbol