title: How to use a loop function with user input in C?
body: <p>Here is the average program I created. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
   int main()
   {
      float f1,f2,f3;
  
      /* Program to calculate averages. */
  
      /*Asks for the numbers.*/
  
      printf(" Please enter three numbers.\n");
      printf ("\t" "First number please.\n");
      scanf("%f", &amp;f1);
      printf ("\t" "Second number please.\n");
      scanf ("%f", &amp;f2);
      printf("\t" "Third number please.\n");
      scanf("%f", &amp;f3);
  
      /* Now it averages it.*/
      printf(" Thank you, wait one.\n");
      printf(" Excellent, your sum is.\n");
      printf("%f""\n", f1+f2+f3);
  
  
      printf("Your average of the sum is now!!!!\n");
      printf("%f", (f1+f2+f3)/3);
  
      return 0;
  }
  </code></pre>
  
  <p>Now would I turn this into a do-while? Or an if else?</p>