+ 3
How to Generate Fibonacci Series in C++ upto 30
Getting Some error during running of Fibonacci Series Program.
1 Odpowiedź
+ 2
int arr[30];
arr[0]=1;arr[1]=1;
for (int i=2:i<30;i++){
arr[i]=arr[i-1]+arr[i-2];
}
for (int I=0;I<30;I++){
cout<<arr[I];
}