//Find the entered value is alphabet or not using ternary operator
#include<stdio.h>
int main()
{
char value;
printf("Enter value=");
scanf("%c",&value);
printf("\nValue=%c\n",value);
((value>='a'&&value<='z')||(value>='A'&& value<='Z'))?
printf("Its an alphabet"):printf("Not an alphabet");
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: