Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- long long tab[100];
- tab[0]=1;
- tab[1]=1;
- cout<<tab[0]<<" "<<tab[1];
- for(int i=2;i<100;i++)
- {
- tab[i]=tab[i-2]+tab[i-1];
- cout<<" "<<tab[i]<<" ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement