isdigit - Find whether the given character is Numeric or not in C

isdigit - Checks if character Number or Not
#include<stdio.h>
#include<ctype.h>
 
int main()
{
    char a;
    scanf( "%c", &a );
    if( isdigit(a) )
        printf( "This is a Numeric character: %c\n", a );
    else
        printf( "This is NOT a Numeric character: %c\n", a );
    return 0;
}