1)many time programmer see that his code gone to in infinite loop what exactly happened behind the code even if he see that logical code is not in infinite loop. then why it look like the infinite loop. some time what happened the intermediate r is not working fine his code in infinite loop not your code in infinite loop so before making decision to change the code please stay for some time to execute the code of interpreter, sure if your logic is not in infinite loop then it execute as per your desire, so why we are not stay or wait because my mind is in infinite loop he taking more and more decision and result is same, when we cool my work is fine. what we expect with code it do as well. some time people are innocent to his work because due to pressure of work, family, money, future, etc. at that time what we should do go to the lonely place and make your mind cool after then do the work. really this is practical approach which is applied by to the programmer.
2) some time what we do with the code we use more loops and decision control in our code and so the execution time is increase and we thought that my code is in infinite loop but exactly what happened with the code its result come after some time when his cycle is complete.
3)Some time we use jumping statement in code and there is a looping at that stage also execution time increase.
overall i want to express the think that dont loose the control over the looping. your decision is as per you desire.
thanks.
Comment/Reply (w/o sign-up)