Function definition: Difference between revisions

Content added Content deleted
Line 557: Line 557:
5) ERRE for C-64 admits only real with one parameter functions.
5) ERRE for C-64 admits only real with one parameter functions.


FUNCTION DIAGONAL(X,Y,Z)
FUNCTION MULTIPLY(A,B)
DIAGONAL=SQR(X*X+Y*Y+Z*Z)
MULTIPLY=A*B
END FUNCTION
END FUNCTION

Usage:

IF MULTIPLY(A,B)>10 THEN ......

or

S=MULTIPLY(22,11)


=={{header|Euphoria}}==
=={{header|Euphoria}}==