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

What does *p++ do?

989


How are Structure passing and returning implemented by the complier?

1138


can we have joblib in a proc ?

2252


Explain what are linked list?

1012


Write a program to check whether a number is prime or not using c?

1020


What is difference between constant pointer and constant variable?

1239


how to introdu5ce my self in serco

1965


Where is volatile variable stored?

1045


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

996


What is the difference between null pointer and wild pointer?

1158


Write a code to generate a series where the next element is the sum of last k terms.

1186


Why c is a procedural language?

1027


What is the use of getchar functions?

1152


How can you call a function, given its name as a string?

1116


What does return 1 means in c?

1034