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
How old is c programming language?
What is the purpose of clrscr () printf () and getch ()?
Is stack a keyword in c?
Explain what is the use of a semicolon (;) at the end of every program statement?
Does c have class?
Explain the difference between the local variable and global variable in c?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
Explain how can I write functions that take a variable number of arguments?
Define C in your own Language.
What are volatile variables in c?
How can you increase the allowable number of simultaneously open files?
what are bit fields in c?
Explain low-order bytes.
What is null in c?
Is a pointer a kind of array?