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

The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1206


What is class and object in c?

1117


What is boolean in c?

1088


what is the difference between 123 and 0123 in c?

1202


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

2322


What is the use of a conditional inclusion statement in C?

1060


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2690


Is this program statement valid? INT = 10.50;

1145


Explain what is a 'locale'?

1079


How can I read a binary data file properly?

1163


What is the use of sizeof () in c?

1047


What is c system32 taskhostw exe?

1023


Explain what are multibyte characters?

1188


What is sizeof int in c?

1054


What does void main () mean?

1234