/* Program to find the given number is single digit or not */
#include "stdio.h"
main()
{
	int number;
	clrscr();
	printf("Enter the value\n");
	scanf("%d",&number);
	if (number>=0 && number<=9)
	   printf("%d is the single digit",number);
	else
	   printf("%d is the not a single digit",number);
	getch();
}
/* Note: if number>=0 && number <=9 means 0,1,2........9
	if number>0 && number<10 mean 1,2.......9

   Exercise:
	1. To read a value from keyboard and check whether it is
	      two digit or not: Hint ( number >=10 && number <=99)
	2. To read a number from keyboard and check whether it is
	      triple digit or not: Hint (number >=100 && number <=999)
*/