14)C PROGRAM TO CHECK WHETHER THE CHARACTER IS ALPHABET OR NOT
LOGIC:- A character is alphabet if character is between 'a' to 'z' and 'A' to 'Z' that is ASCII value between 97 to 122 and 65 to 90 respectively.
EXAMPLE:-
Note:- in 2nd Output 34 is given but answer is display only 3 , because we given a character, and character is single digit not more than one.
LOGIC:- A character is alphabet if character is between 'a' to 'z' and 'A' to 'Z' that is ASCII value between 97 to 122 and 65 to 90 respectively.
EXAMPLE:-
Note:- in 2nd Output 34 is given but answer is display only 3 , because we given a character, and character is single digit not more than one.
Comments
Post a Comment