The problem is this. I try to enter the limit of at least 34 fibonacci numbers but the limit display the limit of 89.
#include <iostream>
using namespace std;
int main()
{
int x=0,y=1;
int num;
cout<<"Enter number:";
cin>>num;
cout<<x<<" "<<y;
while(y<=num)
{
x= x + y;
y= y + x;
cout<<" "<<x<<" "<<y;
}
system("pause");
return 0;
}