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 / amit thakur

void main()
{
int x=1,i=0,n;
printf("Enter the value for n ");
scanf("%d",&n);
printf("\n%d ,",i);
for(;n>=1;--n)
{
x=x+i;
i=x-i;
printf("%d ,",x);
}
getch();
}

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

987


Where define directive used?

1032


Can you add pointers together? Why would you?

1072


Why we use break in c?

935


Explain how can I manipulate strings of multibyte characters?

1158


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

1046


What is the 'named constructor idiom'?

1032


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2402


Using which language Test cases are added in .ptu file of RTRT unit testing???

4217


Explain what’s a signal? Explain what do I use signals for?

1053


How variables are declared in c?

993


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

1054


Is it better to use malloc() or calloc()?

1065


How can a number be converted to a string?

1242


Why do we use c for the speed of light?

1103