by Dinesh Thakur

 

 

#include<ctype.h>

#include<stdio.h>
#include<conio .h>
void main()
{
char ch;
for(;;)
{
ch = getchar();
if(ch == '.') break;
if(iscntrl(ch)) printf("%c is a control char\n", ch);
}
getch();
}
 
OUTPUT:
2
is a control char