[Coco] Basic09 Whats Wrong.
coco at jechar.ca
coco at jechar.ca
Fri Oct 19 15:12:49 EDT 2018
PS Code below tested with shell plus.
On 2018-10-19 14:58, coco at jechar.ca wrote:
> Two simple programs but neither correct
>
> program a.b089 results in an error 27 when loading is attempted.
> program t.b089 results in an error 69 when loading is attempted.
>
> Code for a.b089 follows:
> PROCEDURE a
> PARAMETER a,b:INTEGER
> PRINT a+b
> END
> Code for t.b089 follows:
> PROCEDURE t
>
> PARAM x,y:STRING
>
> IF y="" THEN
> PRINT"Two parameters required."
> ENDIF
>
> IF y<>"" THEN
> PRINT "X=",x
> ENDIF
>
> IF y<>"" THEN
> PRINT "Y=",y
> ENDIF
>
> END
>
> Why ?
More information about the Coco
mailing list