Write a function definition for a function is_digit that takes one argument
of type char and returns a bool value. The function returns true if the argument is a decimal digit; otherwise, it returns false.
bool is_digit(char ch)
{
return ('0' <= ch) && (ch <= '9');
}