service { const html Setup =

A Simple Plus Minus Calculator

Enter your operator (+ or -):

Enter the first integer (-99 to 999):

Enter the second integer (-99 to 999): ; const html Return =

The Answer

Your answer is : <[Ans]>

Would you like to do another calculation (yes or no)? ; const html ByeBye =

Thank you for using this calculator

; int Ans; session Calculate() { string YorN; int int1, int2; string operator; YorN = ""; while (YorN != "no") { show Setup receive[operator = operator, int1 = int1, int2 = int2]; if (operator=="+") Ans = int1 + int2; if (operator=="-") Ans = int1 - int2; show plug Return[Ans = Ans] receive[YorN = YorN]; } exit ByeBye; } }