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
Is c still relevant?
Is a house a mass structure?
What is a node in c?
What is pivot in c?
What is formal argument?
What is an example of structure?
what is a constant pointer in C
what are enumerations in C
Explain that why C is procedural?
How do shell structures work?
What is I ++ in c programming?
Is it possible to execute code even after the program exits the main() function?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Write a program to print all permutations of a given string.
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?