ok i have tried it that way but it just exits look this is how i have it ...btw i know i can use the swith statement but i am just tring to do it other ways.. thank you again
Code:
#include <stdio.h>
#include <math.h>
int main()
{
int x,y;
char o,n;
char ch;
startover:
printf("What do you want to do?\n");
printf("ADD, SUBTRACT, MULTIPLY OR DEVIDE\n");
printf("Enter the first letter\n");
ch = getchar();
printf("Please enter your value\n");
scanf("%d",&x);
printf("Please enter your second value\n");
scanf("%d",&y);
if (ch == 'a') printf("The value is %d\n",x+y);
if (ch == 'd') printf("The value is %d\n",x/y);
if (ch == 'm') printf("The value is %d\n",x*y);
if (ch == 's') printf("The value is %d\n",x-y);
printf("Would you like to go again?\n");
printf("Type in o for ok to go again\n");
printf("\n");
o = getche();
scanf("%c",&o);
if (o == '\r') goto startover;
}