title: Creating an infinite loop with an exception on C
body: <pre><code>#include &lt;stdio.h&gt;
  
  main(){
  
    int input, rev; //var to store number
  
    printf("\nEnter a number: "); //Ask user for a number
    scanf("%d", &amp;input); //Store number
  
    if(input == 0){ //If number equal zero, terminate program
      return 0;
    }
  
    printf("The reversed number is: ");
  
    while(input != 0){  //Reversal code for any number
      rev = input % 10;
      printf("%d", rev);
      input /=10;
    }
  
    return 0;
  }
  </code></pre>
  
  <p>I'm trying to create an infinite loop where the program asks the user again for another number after it reverses the previously inputted number. It will keep on reversing the number until the user inputs zero. Is there any way to do that?</p>