Prog#018: Single digit or not

/* 
Program#18
Single digit or not
*/

#include <stdio.h>
main(){
int n;
printf("\nEnter a positive number :");
scanf("%d",&n);
if(n>=0 && n<=9) 
printf("Single digit number"); // this will be printed, only if both the conditions are true.
else
printf("Not a Single digit number");
}