please check my code,what's wrong in my code ,last 2 conditions not satisfied