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 / amit thakur

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 ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is null defined in c?

1120


Can include files be nested? How many levels deep can include files be nested?

1113


What is a stream?

1097


Write a program to print factorial of given number without using recursion?

969


What are multidimensional arrays?

1090


What is pragma in c?

1166


What is the difference between printf and scanf in c?

1305


What do you mean by dynamic memory allocation in c?

1069


When should you use a type cast?

1084


What does 4d mean in c?

1462


What is const and volatile in c?

1005


How is a macro different from a function?

1139


Explain what does a function declared as pascal do differently?

1242


What is the difference between volatile and const volatile?

955


What are the types of i/o functions?

1294