write a program to generate 1st n fibonacci prime number
Answer Posted / namrata
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 ? | 2 Yes | 2 No |
Post New Answer View All Answers
a program that can input number of records and can view it again the record
What is the use of typedef in structure in c?
Why isnt any of this standardized in c?
How can you find the day of the week given the date?
can anyone please tell about the nested interrupts?
Explain the difference between call by value and call by reference in c language?
What is the size of a union variable?
How old is c programming language?
Is c procedural or object oriented?
Can we change the value of static variable in c?
What is size of union in c?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
What are extern variables in c?
C language questions for civil engineering
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM