Help on developing a program
Write a function to generate nth term of fibonacci sequence.use this function to print first n terms of the sequence.plzz help and give solution ASAP
Here is the code for starting...
1 2 3 4 5 6 7
|
cout << "1 1 ";
while (temp < 20){
temp = x+y;
x = y;
y = temp;
cout << temp << " ";
}
|
Topic archived. No new replies allowed.