you've initialized years to 3 and the loop test condition years <= 3. You haven't incremented years inside of the loop, so it becomes infinite. Initialize years to 1 and increment it inside of the loop.
Very very thanks sir, I am very kind of u for giving such guidelines. I find u in best of health by the grace of God.