title: Ask user to repeat the program or exit in C
body: <p>In this very basic program which ask the user to input two numbers, and then the program will sum these numbers together. I want at the end to ask the user if he/she want to repeat the program again or to exit the program! for example if he/she press y the program will reask the user to input two number, otherwise the program will be closed. How to do it ?</p>
  
  <pre><code>main(){
  float x,y,sum;
  printf ("Enter the first number:");
  scanf ("%f",&amp;x);
  printf ("Enter the second number:");
  scanf ("%f",&amp;y);
  sum=x+y;
  printf ("The total number is:%f",sum);
  }
  </code></pre>