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


Please Help Members By Posting Answers For Below Questions

What is pass by value in c?

592


What is the translation phases used in c language?

625


What is non linear data structure in c?

565


What is a newline escape sequence?

662


Write a program to print ASCII code for a given digit.

679






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.

1585


What is advantage of pointer in c?

683


What is the use of linkage in c language?

611


What is wrong with this declaration?

606


Explain how are 16- and 32-bit numbers stored?

779


What is const keyword in c?

739


How does struct work in c?

603


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 “****”.

2642


What is preprocessor with example?

578


What is pointer in c?

731