Prog#019: Single,two,three or four digit number

/* 
Program#19
Single,two,three or four digit number
*/

#include <stdio.h>
main(){
int n;
printf("\nEnter a positive number :");
scanf("%d",&n);
if(n>=0 && n<=9) 
printf("Single digit number");
else if(n>=10 && n<=99)
printf("\n %d: Two digit number",n);
else if(n>=100 && n<=999)
printf("\n %d: Three digit number",n);
else if(n>=1000 && n<=9999)
printf("\n %d: Four digit number",n);
else
printf("\n %d: Greater than four digits",n);
}