I am trying to get a program where the user chooses to calculate the area between three shapes (circle, ring, and ellipse). Here is the sample code:
EXPORT AREAS()
BEGIN
RECT();
CHOOSE(C," ", "Circle");
CASE
IF C==1 THEN
INPUT(R);
PRINT(string(pi*R^2));
END;
END;END;
I tried this with a semicolon with the first END, without the semicolon in the first END, but the result is the same: Syntax error. The online help/manual does not help. Any ideas? Thanks.