Skip to content

Instantly share code, notes, and snippets.

@lockwooddev
Created February 2, 2015 20:55
Show Gist options
  • Save lockwooddev/f645a0f76cd305514be0 to your computer and use it in GitHub Desktop.
Save lockwooddev/f645a0f76cd305514be0 to your computer and use it in GitHub Desktop.
Fibonacci Swift
var first = 0
var second = 1
var result = 0
do {
result = first + second
first = second
second = result
println(result)
} while result < 1000000000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment