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 variable in c example?
Why do we need arrays in c?
How can I run c program?
Describe static function with its usage?
I need testPalindrome and removeSpace
#include
If you know then define #pragma?
What is array of pointers to string?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
Define VARIABLE?
What is wild pointer in c?
How can I find the modification date and time of a file?
How variables are declared in c?
What is the use of pragma in embedded c?
Why does notstrcat(string, "!");Work?
Which is an example of a structural homology?