• + 1 comment

    I think that u guys are not initialising a new_number(=i) but using 'i' instead .. that changes the value of i to 0 making the loop infinte..

    I have done the same mistake..