Explanation:
the output of your code is 30
Answer:
You need exit condition like If, otherwise method will repeat endlessly.
padna jana ta yarrr kasto this yarr