This question is a bit basic, but how do I check the number of digits in an integer?
I need to check if an integer P
is between 100
and 0
without doing an if condition simliar to (P>9)&&(P<100)
?
Something like P%100==0
? (where %
is mod)
Thanks