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
How to write a code for reverse of string without using string functions?
Is exit(status) truly equivalent to returning the same status from main?
Compare interpreters and compilers.
What functions are used for dynamic memory allocation in c language?
What are the different data types in C?
Apart from dennis ritchie who the other person who contributed in design of c language.
What are the 4 types of organizational structures?
In which language linux is written?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What is the collection of communication lines and routers called?
What are qualifiers and modifiers c?
What’s a signal? Explain what do I use signals for?
Can you mix old-style and new-style function syntax?
How can I open a file so that other programs can update it at the same time?
What is the size of array float a(10)?