RosettaCodeData/Task/Function-definition/00-TASK.txt

16 lines
411 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
A function is a body of code that returns a value.
The value returned may depend on arguments provided to the function.
;Task:
Write a definition of a function called "multiply" that takes two arguments and returns their product.
(Argument types should be chosen so as not to distract from showing how functions are created and values returned).
;Related task:
*   [[Function prototype]]
<br><br>