[Solved] Stuck in infinite fgets loop

If there are more than one statements that you want to write in a loop or if statement, then you must use braces {} to define which statements come in the loop. In your code, only the printf(“Insert a non negative number: “); statement is in the loop, and nothing is changing the input‘s value … Read more