Computer Science, asked by ankit8232, 1 year ago

Create program in c++
(1) Faboncy

Answers

Answered by busybalaji02pbwcoq
2
First of all it is Fibbonacci and not fabonacy. The code is (hope you know the syntax. I am writing only the logic part.)
cin>>num;
a=-1;
b=1;
for(i=1;i<=num;i++)
{
c=a+b;
cout<<c<<" ";
a=b;
b=c;
}
Hope you like it. Please mark brainliest
Similar questions