//Header file: #include
//Declaration: int isdigit(int ch);
//Return: returns nonzero if ch is a digit or zero is returned.
#include
#include
int main(void)
{
char ch;
for(;;) {
ch = getchar();
if(ch == '.'){
break;
}
if(isdigit(ch)){
printf("%c is a digit\n", ch);
}
}
return 0;
}
/*
2
2 is a digit
4
4 is a digit
8
8 is a digit
s
.
*/