Skip to content

Instantly share code, notes, and snippets.

@nikhedonia
Last active November 9, 2018 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikhedonia/f357afc0106fc9180e271d7934be269b to your computer and use it in GitHub Desktop.
Save nikhedonia/f357afc0106fc9180e271d7934be269b to your computer and use it in GitHub Desktop.
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