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 does *p++ do?
How are Structure passing and returning implemented by the complier?
can we have joblib in a proc ?
Explain what are linked list?
Write a program to check whether a number is prime or not using c?
What is difference between constant pointer and constant variable?
how to introdu5ce my self in serco
Where is volatile variable stored?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is the difference between null pointer and wild pointer?
Write a code to generate a series where the next element is the sum of last k terms.
Why c is a procedural language?
What is the use of getchar functions?
How can you call a function, given its name as a string?
What does return 1 means in c?