Skip to content

Instantly share code, notes, and snippets.

@whopiyush
Created December 4, 2018 08:20
Show Gist options
  • Select an option

  • Save whopiyush/0e44d2cbd58513aa3b8fe3f1a8751754 to your computer and use it in GitHub Desktop.

Select an option

Save whopiyush/0e44d2cbd58513aa3b8fe3f1a8751754 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int a,d , fib1 = 0, fib2 = 1, fib3 = 1;
cout << "Enter number";
cin >> a;
while(fib1 + fib2 < 100)
{
fib1 = fib1+fib2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment