#include <stdio.h>

int main() {
     char ch;
    printf("enter a character \n");
    scanf("%c", &ch);
    if ("%c",ch>='0' && ch<='9') {
     printf("character is digit") ; 
    }
     else {
        printf("character is not a digit");
    }
 

 return 0;

}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: