take a character input from the user and check if it is a digit or not.
Answers
Answered by
0
Explanation:
First check if character is alphabet or not. A character is alphabet if((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) . Next, check condition for digits. A character is digit if(ch >= '0' && ch <= '9')
Similar questions