Corrected Tens digit logic over 100.