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)...
Code:
#include <stdio.h>
#include <math.h>
#include <ctype.h>
int main()
{
int x, y, i;
char var;
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");
scanf("%d%c%d",&x,&var,&y);
switch(var)
When you want to make the program run again just put
on it.
klausi