Jump to content

Sudan function: Difference between revisions

Added comma
(Updated description)
(Added comma)
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

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