Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to write a code for reverse of string without using string functions?

2206


Is exit(status) truly equivalent to returning the same status from main?

1123


Compare interpreters and compilers.

1117


What functions are used for dynamic memory allocation in c language?

1218


What are the different data types in C?

1250


Apart from dennis ritchie who the other person who contributed in design of c language.

1478


What are the 4 types of organizational structures?

1168


In which language linux is written?

1291


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1137


What is the collection of communication lines and routers called?

1180


What are qualifiers and modifiers c?

1067


What’s a signal? Explain what do I use signals for?

1164


Can you mix old-style and new-style function syntax?

1160


How can I open a file so that other programs can update it at the same time?

1248


What is the size of array float a(10)?

1194