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 is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What are the advantages of c preprocessor?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
Explain modulus operator. What are the restrictions of a modulus operator?
What are actual arguments?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
Is a house a mass structure?
What are the Advantages of using macro
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Why header files are used?
Explain about block scope in c?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
How many levels of indirection in pointers can you have in a single declaration?
What is the use of parallelize in spark?