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 does sizeof return c?

1024


what is the basis for selection of arrays or pointers as data structure in a program

4268


Can you please explain the difference between strcpy() and memcpy() function?

1029


Give me the code of in-order recursive and non-recursive.

1336


Is c dynamically typed?

1109


What is the main difference between calloc () and malloc ()?

1115


What is difference between static and global variable in c?

1002


Who invented bcpl language?

1146


What is scanf () in c?

1083


How can you invoke another program from within a C program?

1038


Explain what is a const pointer?

1054


Which programming language is best for getting job 2020?

1004


Why we use int main and void main?

1041


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

965


Differentiate abs() function from fabs() function.

976