You have unread notifications. Click here.

Fibonacci DP Code

Loading ...
Start Coding
#include <iostream>
using namespace std;
int main() {
-int n,fib[100]={0,1};
-cout<<"Enter a number: ";
-for(int i=2; i<=n ;++i)
--fib[i] = fib[i-1] + fib[i-2];


English Version
Show Advanced Exercises

Advanced Exercises


Answer the following questions according to what you learned from the video.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Comments & Feedback

ملحوظة يتم مراجعة التعليقات قبل ظهورها من قبل الإدارة. رجاء عدم كتابة نفس التعليق أكثر من مرة.
Back to Course