Created
May 20, 2019 07:51
-
-
Save saru2020/462e0a4c249ef712088197d6eef8e416 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Imperative Programming | |
| var total = 0 | |
| for i in 1...10 { | |
| total += i | |
| } | |
| print("Imperative: total: ", total); // prints 55 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment