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

void main()
{
int x1,x2,x3,i,n;
x1=-1;
x2=1;
printf("enter the value for n :");
scanf("%d",&n);
print
for(i=0;i<n;i++)
{
x3=x1+x2;

if((x3 mod 2)!=0)
{
printf("%d ",x3)
}
x1=x2;
x2=x3;
}

}

Is This Answer Correct ?    6 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a substring in c?

1011


Why is c platform dependent?

1045


How reliable are floating-point comparisons?

1059


How to get string length of given string in c?

1035


What are the two types of structure?

1058


Which node is more powerful and can handle local information processing or graphics processing?

1286


what is ur strangth & weekness

2362


Whats s or c mean?

968


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3889


Why is c used in embedded systems?

1089


How can I convert a number to a string?

1117


What does struct node * mean?

986


Tell us bitwise shift operators?

1050


Define and explain about ! Operator?

974


What are structural members?

976