Sudan function: Difference between revisions

Updated description
(Corrected syntax highlight tags)
(Updated description)
Line 1,338:
=={{header|Swift}}==
{{trans|C}}
I have started working on Swift and am going to practice on RosettaCode. On converting my C implementation for this task to Swift which I contributed last year I found Swift allows statement ending semicolons and enclosing parantheses in if/else statements which are mandatory in C. I didn't find that anywhere while learning Swift so I am posting both implementations here, the "C like" and the "Pure" Swift.
 
Both have been tested with Xcode 14.2 (14C18)
503

edits