0

Hi Sir, please help me with my code I've already finish the sequence.

this is my part :

```
#include <iostream.h>
int main ()
{
unsigned long int a = 0;
unsigned long int b = 1;
unsigned long int c;
int y = 2;
int x = 2;
cout << "How many Fibonacci number you need ? : " ;
cin >> y;
cout << a << "\t" << b;
do
{
x++;
c = a + b;
cout << "\t" << c;
a = b;
b = c;
}
while (x <= y);
return 0;
}
```

now here the question: how choose the sequence output, what i want to is to ask the user "how many sequence he/she wants to see in my output,

Example:

how many Fibonacci number you need? : 10

0 1 1 2 3 5 8 13 21 34 55

(instead having this long numbers, i want to cut it down)

how many Fibonacci number you need? : 10

how many sequence: 3

21 34 55

this is it , thanks sir hope i can receive tips n how to do this thanks again