by Dinesh Thakur

 

 

#include<ctype.h>

#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
for(;;)
{
ch = getchar();
if(ch == '.’) break;
if(isxdigit(ch)) printf("%c is hexadecimal digit\n", ch);
}
getch();
}
 
OUTPUT:
3 is hexadecimal digit