Răspuns:
1)
#include <iostream>
using namespace std;
int main()
{
int a,b,n;
cout<<"Primul termen: ";cin>>a;
cout<<"Al doilea numar: ";cin>>b;
cout<<"Cati termeni sa aiba sirul?"<<endl;cin>>n;
int s[n];
s[1]=a;
s[2]=b;
cout<<"Sirul este: "<<endl;
cout<<s[1]<<endl;
cout<<s[2]<<endl;
for(int i=3;i<=n;i++)
{
s[i]= s[i-2]+s[i-1];
cout<<s[i]<<endl;
}
return 0;
}