Function definition: Difference between revisions

m
Move FutureBasic entry out of BASIC group
imported>Acediast
(→‎{{header|COBOL}}: replaced superfluous implementations with standards)
m (Move FutureBasic entry out of BASIC group)
Line 687:
 
<syntaxhighlight lang="freebasic">#Define multiply(d1, d2) (d1) * (d2)</syntaxhighlight>
 
==={{header|FutureBasic}}===
<syntaxhighlight lang="futurebasic">window 1
 
local fn multiply( a as long, b as long ) as long
end fn = a * b
 
print fn multiply( 3, 9 )
 
HandleEvents</syntaxhighlight>
Output:
<pre>
27
</pre>
 
==={{header|Gambas}}===
Line 1,749 ⟶ 1,735:
let multiply (x: i32, y: i32) : i32 = x * y
</syntaxhighlight>
 
==={{header|FutureBasic}}===
<syntaxhighlight lang="futurebasic">window 1
 
local fn multiply( a as long, b as long ) as long
end fn = a * b
 
print fn multiply( 3, 9 )
 
HandleEvents</syntaxhighlight>
Output:
<pre>
27
</pre>
 
=={{header|GAP}}==
408

edits