title: How to end while loop by pressing the 'Enter' key, not any alphabet key?
body: <p>I want to end while loop by pressing the 'Enter' key, not any alphabet key. I could not figure out how I can do that.
  I have done it such that, if the input is not the digit it will exit, but I want the input to be 'Enter' key. </p>
  
  <pre><code>void main (void)
              {
                  float f;
                  float total=0.0;
                  printf("Enter numbers to be add: ");
                  while (scanf("%f",&amp;f)==1)
                      {
                          total=total+f;
                          printf("Enter another # to be add: ");
                                          scanf("%1.0f",&amp;f);
                      }
                  printf("Addition Total = %1.0f",total);
              }
  </code></pre>