Write a C program to is it a digit.
Menu
Turn Mobile View Off
by Dinesh Thakur

 

 

#include<ctype.h>

#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
for(;;)
{
ch = getchar();
if(ch == '.') break;
if(isdigit(ch)) printf("%c is a digit\n", ch);
}
getch();
}
 
OUTPUT:
44
is a digit
Dinesh Thakur is a Technology Columinist and founder of Computer Notes and Technology Motivation. Turn Mobile View Off