Mutual recursion: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Changed to Wren S/H and removed unnecessary forward declaration.) |
(Added Easylang) |
||
Line 1,278: | Line 1,278: | ||
But you don't have to worry about that to use it. |
But you don't have to worry about that to use it. |
||
=={{header|EasyLang}}== |
|||
<syntaxhighlight> |
|||
funcdecl M n . |
|||
func F n . |
|||
if n = 0 |
|||
return 1 |
|||
. |
|||
return n - M F (n - 1) |
|||
. |
|||
func M n . |
|||
if n = 0 |
|||
return 0 |
|||
. |
|||
return n - F M (n - 1) |
|||
. |
|||
for i = 0 to 15 |
|||
write F i & " " |
|||
. |
|||
print "" |
|||
for i = 0 to 15 |
|||
write M i & " " |
|||
. |
|||
</syntaxhighlight> |
|||
=={{header|Eiffel}}== |
=={{header|Eiffel}}== |