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 / arun

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 ?    4 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are called c variables?

1066


What is c basic?

1178


Write a program that accept anumber in words

1761


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1122


What is a wrapper function in c?

1118


Why is #define used?

1276


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1114


What is difference between structure and union in c programming?

1111


What are the application of c?

1102


What are actual arguments?

1099


How can I generate floating-point random numbers?

1132


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2189


What does c value mean?

1200


In C language what is a 'dangling pointer'?

1162


What is masking?

1154