whether a character intered through the keyboard is a special symbol or not
whether a character entered through the keyboard is a special symbol or not
#include<stdio.h
int main(){
char ch;
printf("Enter a character \n");
scanf(""%c",&ch);
((ch>=0 && ch<=47)||
(ch>=58&&ch<=64)||
(ch>=91&&ch<=96)||
(ch>=123))?
printf("character entered is a special symbol\\n):
printf("character entered is not a special symbol\\n);
return 0;
}
Enter a character: @
character entered is a special symbol
related program--
1..whether the character Entered through the keyboard is a lower case alphabet or not
Comments
Post a Comment