Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Function-definition/XPL0/function-definition.xpl0
Normal file
8
Task/Function-definition/XPL0/function-definition.xpl0
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
func Multiply(A, B); \the characters in parentheses are only a comment
|
||||
int A, B; \the arguments are actually declared here, as integers
|
||||
return A*B; \the default (undeclared) function type is integer
|
||||
\no need to enclose a single statement in brackets
|
||||
|
||||
func real FloatMul(A, B); \floating point version
|
||||
real A, B; \arguments are declared here as floating point (doubles)
|
||||
return A*B;
|
||||
Loading…
Add table
Add a link
Reference in a new issue