Fibonacci series

how can i find fibonacci series whts the formula

Fibonacci Noumber a series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers. The simplest is the series 1, 1, 2, 3, 5, 8, etc.

take two variable a=1;and b=1;

now run a loop and get next fibo number also update a and b

int a=1;
int b=1;
for(int i=0;i<n;i++){
	int c=a+b;
	cout<<c<<" ";
	a=b;
	b=c;
}

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.