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

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 ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you write the algorithm for Queue?

2175


Explain enumerated types.

1090


Explain bitwise shift operators?

1321


Explain Function Pointer?

1244


What is abstract data structure in c?

1114


Is null valid for pointers to functions?

1252


When should a type cast be used?

1067


how many key words availabel in c a) 28 b) 31 c) 32

1132


How is pointer initialized in c?

1094


Why does the call char scanf work?

1264


What is the difference between call by value and call by reference in c?

1216


What is c programming structure?

1278


What is function prototype in c language?

1090


In which header file is the null macro defined?

1405


How can I read/write structures from/to data files?

1017