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 pass by value in c?
What is the translation phases used in c language?
What is non linear data structure in c?
What is a newline escape sequence?
Write a program to print ASCII code for a given digit.
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
What is advantage of pointer in c?
What is the use of linkage in c language?
What is wrong with this declaration?
Explain how are 16- and 32-bit numbers stored?
What is const keyword in c?
How does struct work in c?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What is preprocessor with example?
What is pointer in c?