Jump to content

Sudan function: Difference between revisions

Corrected syntax highlight tags
(Corrected Swift header tag)
(Corrected syntax highlight tags)
Line 1,343:
 
===C like===
<langsyntaxhighlight lang="swift">
//Aamrun, 3rd February 2023
 
Line 1,359:
 
print("F1(3,3) = " + String(F(n: 1,x: 3,y: 3)));
</syntaxhighlight>
</lang>
 
===Pure Swift===
<langsyntaxhighlight lang="swift">
//Aamrun, 3rd February 2023
 
Line 1,378:
 
print("F1(3,3) = " + String(F(n: 1,x: 3,y: 3)))
</syntaxhighlight>
</lang>
 
Output is the same for both
503

edits

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