Write a program to find whether a given character is an alphabet or not.
Method 1:
Using ASCII value of lowercase letters (a,b,c,...z) and uppercase letters (A,B,C,...Z), check whether the entered number falls in the ASCII Value range of the alphabet.
Implementation:
Method 1:
Using ASCII value of lowercase letters (a,b,c,...z) and uppercase letters (A,B,C,...Z), check whether the entered number falls in the ASCII Value range of the alphabet.
Implementation:
Output:
Enter a character:s
s is an alphabet
Enter a character:s
s is an alphabet