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

What are the different types of linkage exist in c?

1074


What is a program flowchart and explain how does it help in writing a program?

1363


What are the disadvantages of external storage class?

1107


What are the general description for loop statement and available loop types in c?

1171


What are the 4 types of programming language?

1192


How to create struct variables?

1173


What is define c?

1157


Why do we need arrays in c?

1216


Explain the ternary tree?

1079


Explain the properties of union.

1137


How can my program discover the complete pathname to the executable from which it was invoked?

1121


List some of the static data structures in C?

1245


What is equivalent to ++i+++j?

1150


How can I get back to the interactive keyboard if stdin is redirected?

1242


What is the difference between c and python?

1235