//Declaration: int isalpha(int ch);
//Return: returns nonzero if ch is a letter or zero if not.
#include
#include
int main(void)
{
char ch;
for(;;) {
ch = getchar();
if(ch == '.') {
break;
}
if(isalpha(ch)) {
printf("%c is a letter\n", ch);
}
}
return 0;
}
/*
b
b is a letter
c
c is a letter
r
r is a letter
.
*/