and another thing iz what if i wanted to calculate another problem how can i make the program run again...when they click on yes(y)...
When you want to make the program run again just put
int x, y, i;
int result = 1;
char again = 'y';
again: /* jumps to that mark after <goto again;> */
printf("Type the operator +,-,/,* and your prob in this format 5+5 or
if you are working on power then here is the fromat 5^2\n");