Jump to content

Mutual recursion: Difference between revisions

Added Easylang
m (→‎{{header|Wren}}: Changed to Wren S/H and removed unnecessary forward declaration.)
(Added Easylang)
Line 1,278:
 
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}}==
2,042

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.