Solution to Write a c++ program to display the Fibonacci series of the first 50 integer - Sikademy
Author Image

Archangel Macsika

Write a c++ program to display the Fibonacci series of the first 50 integer

The Answer to the Question
is below this banner.

Can't find a solution anywhere?

NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?

Get the Answers Now!

You will get a detailed answer to your question or assignment in the shortest time possible.

Here's the Solution to this Question


#include <iostream> using namespace std; int main() { int fib[100]; fib[0] = 0; fin[1] = 1; for (int i = 2; i <= 50; i++) { fib[i] = fib[i-2] + fib[i-1]; } cout << fib[50] << endl; return 0; }

Related Answers

Was this answer helpful?

Join our Community to stay in the know

Get updates for similar and other helpful Answers

Question ID: mtid-3-stid-44-sqid-1032-qpid-28