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


Please Help Members By Posting Answers For Below Questions

Is c still relevant?

642


Is a house a mass structure?

643


What is a node in c?

551


What is pivot in c?

569


What is formal argument?

653






What is an example of structure?

589


what is a constant pointer in C

681


what are enumerations in C

725


Explain that why C is procedural?

661


How do shell structures work?

570


What is I ++ in c programming?

629


Is it possible to execute code even after the program exits the main() function?

819


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1893


Write a program to print all permutations of a given string.

645


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

658