Răspunsuri

2014-05-20T14:59:55+03:00
#include <iostream>
using namespace std;

int main()
{int n,i,t1=1,t2=3,t;

cin>>n;
cout<<"Sirul Lucas: "<<t1<<" "<<t2<<" ";
for (i=1;i<=n-2;i++)
{t=t1+t2;
 cout<<t<<" ";
 t1=t2;
 t2=t;
}
}