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 ?
main(){
float x,y,sum;
printf ("Enter the first number:");
scanf ("%f",&x);
printf ("Enter the second number:");
scanf ("%f",&y);
sum=x+y;
printf ("The total number is:%f",sum);
}