write a program to generate 1st n fibonacci prime number
Answer Posted / subhabrato das
/*program to calculate lcm of 2 integers*/
#include"stdio.h"
#include"conio.h"
int lcm(int,int);
void main()
{
int a,b,lcm;
printf("Enter two integers...\n");
scanf("%d %d",&a,&b);
lcm=(a,b);
printf("\n\nLCM=%d",lcm);
}
int lcm(int a,int b)
{
int lcm;
int i=1;
while(1)
{
r=a*i;
if(r%b==0)
{
return r;
}
i++
}
}
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
What are terms in math?
What is an expression?
What is static memory allocation? Explain
What is queue in c?
what type of questions arrive in interview over c programming?
What are the primitive data types in c?
What is wrong with this program statement?
Explain what are binary trees?
What is structure of c program?
What are c header files?
What is time null in c?
What is the use of typedef in structure in c?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
When a c file is executed there are many files that are automatically opened what are they files?
What are the advantages of union?