#include
using namespace std;
bool isFib(int n){
int i=1;
int fisrtNum=0;
int secondNum=1;
if(n==0 || n==1){
return true;
}
while(i<=n){
int x= fisrtNum+secondNum;
if(x==n){
return true;
}
fisrtNum=secondNum;
secondNum=x;
i++;
}
return false;
}
int main(){
cout<<"ENTER YOUR NUMBER: "<<endl;
int x;
cin>>x;
int y= isFib(x);
cout<<y<<endl;
}
.accordion-body
, though the transition does limit
overflow.