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

void main()
{
int x1,x2,x3,i;
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 ?    7 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does nil mean in c?

1182


Write a C program in Fibonacci series.

1046


Why we use break in c?

935


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

2003


How can I handle floating-point exceptions gracefully?

1107


Explain what does it mean when a pointer is used in an if statement?

1004


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2412


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1085


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

2144


What are the advantages and disadvantages of c language?

962


How do you use a pointer to a function?

1026


How many levels of pointers can you have?

1135


What is switch in c?

1047


Is main an identifier in c?

1086


What is %g in c?

1019