03-04-2015, 10:01 PM
HI all,
Would you be kind enough as to explain why I can't create an array using a FOR loop like this?
Prime will complain there is an invalid input.
THanks
Would you be kind enough as to explain why I can't create an array using a FOR loop like this?
Code:
EXPORT TEST()
BEGIN
LOCAL c, G;
FOR c FROM 1 to 3 DO
G(c):=c^2+1;
END;
RETURN G(1)+G(3);
END;
THanks