I have a huge issue which may not be that big but I am a little stumped. I don't think I have the whole code and may be missing some pieces so I just need some help getting this puzzle together.

Assignment is: write a prog which acts like a calculator for integers. it should perform as such:

1.) ask user if they would like to start a new calculation. if they say yes initialize the result to 0

2.)ask user what operation they would like to perform (add=1,sub=2,mult=3,divide=4)

3.)ask user for integer value they want to add/sub/mult/divide

4.)perform oper. with following restrictions...you may only use add and subtract for all operations

5.)display result of operation

6.) ask user if they would like to perform another operation in this calculation, start over, or quit

**THANKS FOR ANY HELP THAT WILL BE GIVEN.**

output as such:

enter the operation you which to perform (enter 1 for add, 2 for subtract,

3 for multiply, 4 for divide): 1

enter the value you wish to add: 4

0 + 4 = 4

would you like to perform another operation (enter 1 for yes, 0 for no): 1

enter the operation you which to perform (1 for add, 2 for subtract,

3 for multiply, 4 for divide): 2

enter the value you wish to subtract: 2

4 - 2 = 2

would you like to perform another operation (enter 1 for yes, 0 for no): 1

enter the operation you which to perform (1 for add, 2 for subtract,

3 for multiply, 4 for divide): 3

enter the value you wish to multiply by: 2

2 * 2 = 4

would you like to perform another operation (enter 1 for yes, 0 for no): 1

enter the operation you which to perform (1 for add, 2 for subtract,

3 for multiply, 4 for divide): 4

enter the value you wish to divide by: 3

4/3 = 1

would you like to perform another operation (enter 1 for yes, 0 for no): 1

enter the operation you which to perform (1 for add, 2 for subtract,

3 for multiply, 4 for divide): 2

enter the value you wish to subtract: 4

1 - 4 = 3

would you like to perform another operation (enter 1 for yes, 0 for no): 0

would you like to perform another calculation (enter 1 for yes, 0 for no): 1

enter the operation you which to perform (1 for add, 2 for subtract,

3 for multiply, 4 for divide): 3

enter the value you wish to multiply by: 6

0 * 6 = 0

would you like to perform another operation (enter 1 for yes, 0 for no): 1

enter the operation you which to perform (1 for add, 2 for subtract,

3 for multiply, 4 for divide): 4

enter the value you wish to divide by: 4

0/4 = 0

would you like to perform another operation (enter 1 for yes, 0 for no): 1

enter the operation you which to perform (1 for add, 2 for subtract,

3 for multiply, 4 for divide): 1

enter the value you wish to add: 4

0 + 4 = 4

would you like to perform another operation (enter 1 for yes, 0 for no): 1

enter the operation you which to perform (1 for add, 2 for subtract,

3 for multiply, 4 for divide): 4

enter the value you wish to divide by: 0

4/0 error - division by 0

would you like to perform another operation (enter 1 for yes, 0 for no): 0

would you like to perform another calculation (enter 1 for yes, 0 for no): 0

#include <stdio.h> /* C standard input & output library*/ int main (int argc, char **argv) /* declare the main function*/ { char run='n'; printf("Do you want to run the calculator? (Y/N):"); scanf("%c",&run); if(run=='Y') { } if(run=='Y'||run=='y') { } printf("Do you want to run the calculator? (Y/N):"); scanf("%c",&run); while(run=='Y'||run=='y') { printf("Do you want to run the calculator,again? (Y/N:"); scanf("%c",&run); } int result=0; int choice=0; printf("Enter the operation you wish to perform:(1=add,2=subtract,3=multiply,4=divide)"); scanf("%d",&choice); string selection=""; if(choice==1) { selection= "add:"; } if(choice==2) { selection= "subtract:"; } if(choice==3) { selection= "multiply by:"; } if(choice==4) { selection= "divide by:"; } int num=0; printf("Enter the value you wish to %s",selection); scanf("%d",&num); int answer=0; if(choice==1) { answer=result+num; printf("%d+%d=%d",result,num,answer); result=answer; } if(choice==2) { answer=result-num; printf("%d-%d=%d",result,num,answer); result=answer; } if(choice==3) { answer=result*num; printf("%d*%d=%d",result,num,answer); result=answer; } if(choice==4) { if(num==0) { printf("%d/%d error-division by 0", result,num); } else { answer=result/num; printf("%d/%d=%d",result,num,answer); result=answer;