Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program to generate 1st n fibonacci prime number

Answer Posted / yagneswara babu

void main()
{
int x1,x2,x3,n,i;
x1=0;
x2=1;
printf("enter a value for n : ");
scanf("%d",&n);
printf("%d %d ",x1,x2);
for(i=3;i<=n;i++)
{
x3=x1+x2;
printf("%d ",x3);
x1=x2;
x2=x3;
}
}

Is This Answer Correct ?    35 Yes 40 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can a program be made to print the name of a source file where an error occurs?

1202


List some of the static data structures in C?

1205


shorting algorithmS

2262


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1087


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1731


Explain what is the difference between null and nul?

1168


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2334


How can you access memory located at a certain address?

1131


What is a program flowchart?

1215


What is scope of variable in c?

1047


What are the different file extensions involved when programming in C?

1296


What are header files? What are their uses?

1222


Hi can anyone tell what is a start up code?

2086


Can static variables be declared in a header file?

1069


Explain how does free() know explain how much memory to release?

1086