how to test my answer perfectly?

HOW MANY DIGITS DO I HAVE
#include<stdio.h>

int main()
{
int n,x;
scanf("%d",&n);
x=n/10;
if (x==0)
printf(“1”);
else if (x>0&&x<10)
printf(“2”);
else if (x>9&&x<100)
printf(“3”);
else
printf(“more than 3”);
return 0;
}
#include<stdio.h>

int main()
{
int n,x;
scanf("%d",&n);
x=n/10;
if (x==0)
printf(“1”);
else if (x>0&&x<10)
printf(“2”);
else if (x>9&&x<100)
printf(“3”);
else
printf(“more than 3”);
return 0;
}
this is my answer to the question above …
I tried running it in codeblocks and it ran successfully … but it is showing wrong answer here on codechef. please tell me where i am wrong o what could be the possible reasons for wrong answer

It’s just that it should be “More than 3 digits”, not “more than 3”.

Hope you haven’t spent so much time debugging the code!
XD

//