#include<iostream>
using namespace std;
int main()
{
int a,b,c,i,n;
cout<<"Upto How many elements " <<endl;
cin>>n;
cout<<"a : ";
cin>>a;
cout<<"b : ";
cin>>b;
for (i=0;i<n;i++)
{ c=a+b;
a=b;
b=c;
cout<<c;}
system ("pause");
}
Dreaming in Digital, Living in Realtime, Thinking in Binary, Talking in IP. WELCOME TO OUR WORLD.
Flash Labels by Way2Hack
Coolstuff Designed by Somesh Chaudhary © 2013 All Rights Reserved.