What would be the pseudocode and flowchart for this problem? BTW it shows Fibonacci numbers below 100.
Program- #include
using namespace std;
int main()
{
double c, first = 0, second = 1, next;
cout << "First 100 terms of Fibonacci series are:" << endl;
for ( c = 0 ; c < 100 ; c++ )
{
if ( c <= 1 )
next = c;
else
{
next = first + second;
first = second;
second = next;
}
cout << next << endl;
}
return 0;
}
You have to implement a flowchart and pseudocode for the given problem.