#include <ctype.h> #include <stdio.h> int main(void) { char ch; for(;;) { ch = getchar(); if(isprint(ch)) printf("%c is printable\n",ch); if(ch == '.') break; } return 0; }