+ 3

How to Generate Fibonacci Series in C++ upto 30

Getting Some error during running of Fibonacci Series Program.

4th Dec 2017, 1:36 AM
Avnish Kumar
Avnish Kumar - avatar
1 Antwort
+ 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]; }
4th Dec 2017, 2:15 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar