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

When should the volatile modifier be used?

1196


When should we use pointers in a c program?

1147


Did c have any year 2000 problems?

1116


What is the use of getchar functions?

1186


What are the different categories of functions in c?

1139


Why is #define used?

1284


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1120


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2210


What is 2 d array in c?

1031


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1959


What are global variables and explain how do you declare them?

1114


Can you pass an entire structure to functions?

1130


Why is c called a structured programming language?

1288


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1477


How can I sort more data than will fit in memory?

1121