Since n is declared as an int, this will overflow for sufficiently large n: n=46342 should do the trick.
Lesson: Instead of trying to describe your code, just post it (preferably formatted for readability/ compilability) ![]()
Since n is declared as an int, this will overflow for sufficiently large n: n=46342 should do the trick.
Lesson: Instead of trying to describe your code, just post it (preferably formatted for readability/ compilability) ![]()