Infinite loop as N will always be >0


#1

this looks infinite loop, correct me if i am wrong.


#2

No bro, as its int, 1/2 will be 0