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