Last active
November 9, 2018 17:35
-
-
Save nikhedonia/f357afc0106fc9180e271d7934be269b to your computer and use it in GitHub Desktop.
This file contains 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
int main () { | |
int n=100; | |
auto prevRatio = 0.0; | |
for (auto ratio: fibRatios()) { | |
cout << ratio << endl; | |
auto delta = ratio - prevRatio; | |
if (n==0 || delta < 0.0001) | |
break; | |
prevRatio = ratio; | |
n- - ; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment