write a program to generate 1st n fibonacci prime number
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
consider the following program sigment int n,sum=1; switch(n) { case 2:sum=sum+2; case 3:sum*=2; break; default:sum=0;} if n=2, what is the value of sum a.0 b.6 c.3 d.none
What is scope rule in c?
what does ‘#include’ mean?
What is the difference between array and structure in c?
What are header files and what are its uses in C programming?
If null and 0 are equivalent as null pointer constants, which should I use?
main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?
Explain output of printf("Hello World"-'A'+'B'); ?
int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?
Differentiate between the = symbol and == symbol?
How do you print an address?
How can I manipulate individual bits?