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

Why do we use header files in c?

1019


Are the variables argc and argv are always local to main?

971


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

979


Explain why can’t constant values be used to define an array’s initial size?

1305


Explain how can you tell whether a program was compiled using c versus c++?

1053


How do I get a null pointer in my programs?

1060


What does p mean in physics?

989


What is the difference between int main and void main in c?

1092


What does a function declared as pascal do differently?

1040


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

1158


What is the difference between abs() and fabs() functions?

1060


Differentiate between the = symbol and == symbol?

1208


What does c mean in standard form?

1101


Why can't I perform arithmetic on a void* pointer?

1045


write a program to find out prime number using sieve case?

2036