#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int first=0,second=1,third,n,i;
cout<<"enter any number :";
cin>>n;
cout<<first<<","<<second;
for(i=2;i<=n;i++)
{
third=first+second;
cout<<","<<third;
first=second;
second=third;
}
getch();
Awesome yr......... I also want to know all these.
ReplyDeletekoi nahi sikh jayega
ReplyDelete