minimum 3 NOR gates are required,hope they will correct the answer.
Here is the code running: https://ideone.com/NKgYHJ
It keeps on running for 15 seconds.
@mkagenius, @iiitnaveen we are talking about the question in which there is condition while(n<0) , whether it will terminate or not.
What should be the answer of question 1 in C...