Kind of funny, but I had this impression you were a brain damaged vet in re-hab, and re-learning arithmetic. <ROFL!>
Your problem is simplicity itself, *IF* your program is allowed to run.
Code:
int n1, n2, sum=0;
char ch;
fscanf(stdin,"%d %ch %d",&n1, &ch &n2);
sum=n1 + n2;
fprintf(stdout,"The sum is: %d\n",sum);
Add in your stdio.h header and main(), and you should have a working program in jig time.
You may need to adjust the spacing in the fscanf() format, depending on exactly how the numbers and the + are presented.