Your if statement is wrong. It shouldn't be possible for the if to evaluate to true. It is impossible for a single character to be <= 'a' AND >= Z. The loop should print "no small letters found" for every character.
Also, please use code tags and reformat posts in the future. If this example weren't so easy I wouldn't have even bothered to read it.