#include <stdio.h> int main() { char ch; printf("Enter character"); scanf("%c",&ch); if(ch>='0' && ch<='9') { printf("%c is number" ,ch); } else { printf("%c is not a number", ch); } return 0; }
Enter character 4
4 is number
Enter character R
R is not a number