title: how to display the sum of 5 input numbers from user using c language
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;conio.h&gt;
  
  main() {
      float num1, num2, num3, num4, num5, sum;
  
      printf("Enter a Number between");
      fflush;
      scanf("%f",&amp;num1);
      fflush;
  
      printf("Enter a Number between");
      scanf("%f",&amp;num2);
      fflush;
  
      printf("Enter a Number between");
      scanf("%f",&amp;num3);
      fflush;
  
      printf("Enter a Number between");
      scanf("%f",&amp;num4);
      fflush;
  
      printf("Enter a Number between");
      scanf("%f",&amp;num5);
      fflush;
  
      sum = num1 + num2 + num3 + num4 + num5;
      printf("The sum of the five numbers you have entered is %f",sum);
  
      getch();
  }
  </code></pre>
  
  <p>I am a newbie in c programming. We have an assignment and I have created the above code. But we need a shorter solution. The user must input five numbers and display the sum. Can you please help me to translate this code using do while function or post test loop. Thank you very much in advance!</p>